Skip to content

Commit

Permalink
add fix tests for gci
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirukumaran Vaseeharan committed Mar 18, 2022
1 parent ac822ce commit 5bd9850
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/testdata/fix/in/gci.go
@@ -0,0 +1,15 @@
//args: -Egci
//config_path: testdata/configs/gci.yml
package gci

import (
"github.com/golangci/golangci-lint/pkg/config"
"github.com/pkg/errors"
"fmt"
)

func GoimportsLocalTest() {
fmt.Print("x")
_ = config.Config{}
_ = errors.New("")
}
17 changes: 17 additions & 0 deletions test/testdata/fix/out/gci.go
@@ -0,0 +1,17 @@
//args: -Egci
//config_path: testdata/configs/gci.yml
package gci

import (
"fmt"

"github.com/golangci/golangci-lint/pkg/config"

"github.com/pkg/errors"
)

func GoimportsLocalTest() {
fmt.Print("x")
_ = config.Config{}
_ = errors.New("")
}

0 comments on commit 5bd9850

Please sign in to comment.