1
0
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:
SalvadorC 2020-03-02 20:12:43 +01:00 committed by GitHub
parent 4af5ef3e1c
commit c469747758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
80 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {