test: fix linter package names (#23)

* test: fix linter package names

* chore: pr-lint.yml
This commit is contained in:
2025-07-14 01:48:39 +03:00
committed by GitHub
parent 70fede7635
commit 9a2bbda223
6 changed files with 28 additions and 25 deletions

View File

@@ -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,
}