diff options
| author | Shulhan <ms@kilabit.info> | 2022-08-31 09:58:46 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-08-31 09:58:46 +0700 |
| commit | 91fce8ab6ce4c6f9722ac2af15fca33600e45abf (patch) | |
| tree | e55ac2dcbc09989b8f7524617a439b6fcd3172ad /lib/memfs/memfs_test.go | |
| parent | dcd3c7c73ca392fed1bfb0de16014ee7ab6fb5a7 (diff) | |
| download | pakakeh.go-91fce8ab6ce4c6f9722ac2af15fca33600e45abf.tar.xz | |
lib/memfs: remove unused parameter in isWatched and isIncluded
While at it change the isIncluded parameter from os.FileMode to
os.FileInfo.
Diffstat (limited to 'lib/memfs/memfs_test.go')
| -rw-r--r-- | lib/memfs/memfs_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/memfs/memfs_test.go b/lib/memfs/memfs_test.go index f61d2930..25affe0d 100644 --- a/lib/memfs/memfs_test.go +++ b/lib/memfs/memfs_test.go @@ -537,11 +537,11 @@ func TestMemFS_isIncluded(t *testing.T) { t.Fatal(err) } - got = mfs.isExcluded(sysPath, fi.Mode()) + got = mfs.isExcluded(sysPath) if got { test.Assert(t, sysPath, !c.exp[x], got) } else { - got = mfs.isIncluded(sysPath, fi.Mode()) + got = mfs.isIncluded(sysPath, fi) test.Assert(t, sysPath, c.exp[x], got) } } |
