mirror of
https://github.com/ivuorinen/gibidify.git
synced 2026-03-05 04:56:59 +00:00
test: fix linter package names (#23)
* test: fix linter package names * chore: pr-lint.yml
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package fileproc
|
||||
package fileproc_test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
fileproc "github.com/ivuorinen/gibidify/fileproc"
|
||||
)
|
||||
|
||||
func TestCollectFilesWithFakeWalker(t *testing.T) {
|
||||
@@ -11,7 +13,7 @@ func TestCollectFilesWithFakeWalker(t *testing.T) {
|
||||
"/path/to/file1.txt",
|
||||
"/path/to/file2.go",
|
||||
}
|
||||
fake := FakeWalker{
|
||||
fake := fileproc.FakeWalker{
|
||||
Files: expectedFiles,
|
||||
Err: nil,
|
||||
}
|
||||
@@ -35,7 +37,7 @@ func TestCollectFilesWithFakeWalker(t *testing.T) {
|
||||
|
||||
func TestCollectFilesError(t *testing.T) {
|
||||
// Fake walker returns an error.
|
||||
fake := FakeWalker{
|
||||
fake := fileproc.FakeWalker{
|
||||
Files: nil,
|
||||
Err: os.ErrNotExist,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user