mirror of
https://github.com/mgechev/revive.git
synced 2024-11-21 17:16:40 +02:00
renames fixtures as testdata to avoid spurious dependencies (#359)
This commit is contained in:
parent
4af5ef3e1c
commit
c469747758
@ -36,7 +36,7 @@ var rules = []lint.Rule{
|
||||
}
|
||||
|
||||
func TestAll(t *testing.T) {
|
||||
baseDir := "../fixtures/golint/"
|
||||
baseDir := "../testdata/golint/"
|
||||
|
||||
rx, err := regexp.Compile(*lintMatch)
|
||||
if err != nil {
|
||||
|
@ -20,7 +20,7 @@ import (
|
||||
)
|
||||
|
||||
func testRule(t *testing.T, filename string, rule lint.Rule, config ...*lint.RuleConfig) {
|
||||
baseDir := "../fixtures/"
|
||||
baseDir := "../testdata/"
|
||||
filename = filename + ".go"
|
||||
src, err := ioutil.ReadFile(baseDir + filename)
|
||||
if err != nil {
|
||||
|
0
fixtures/atomic.go → testdata/atomic.go
vendored
0
fixtures/atomic.go → testdata/atomic.go
vendored
Loading…
Reference in New Issue
Block a user