aboutsummaryrefslogtreecommitdiff
path: root/lib/memfs/memfs_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-10-09 20:45:17 +0700
committerShulhan <ms@kilabit.info>2021-10-09 22:22:02 +0700
commit0b6d689e05ce4efd03c482aa3667652411adcb3b (patch)
tree4e4c6669f89fabb49a4f3cd1fa26639c19db68b4 /lib/memfs/memfs_test.go
parent7e255b79c1c1afaffb1b6f8790f7d77b382acb69 (diff)
downloadpakakeh.go-0b6d689e05ce4efd03c482aa3667652411adcb3b.tar.xz
lib/memfs: remove PathNode "f" field
Previously, the PathNode has two fields to store the node in memory, one is "v" that store map of path to *Node and another is "f" that store the map of path to function that return a *Node. The "f" is used to handle embedding Go generated code, but since the template now can handle generated dynamic path and Node this field is not used anymore.
Diffstat (limited to 'lib/memfs/memfs_test.go')
-rw-r--r--lib/memfs/memfs_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/memfs/memfs_test.go b/lib/memfs/memfs_test.go
index 65da48af..fb259bd3 100644
--- a/lib/memfs/memfs_test.go
+++ b/lib/memfs/memfs_test.go
@@ -58,9 +58,8 @@ func TestNew(t *testing.T) {
expErr string
expMapKeys []string
}{{
- desc: "With empty dir",
- expErr: "open : no such file or directory",
- expMapKeys: make([]string, 0),
+ desc: "With empty dir",
+ expErr: "open : no such file or directory",
}, {
desc: "With file",
opts: Options{