aboutsummaryrefslogtreecommitdiff
path: root/lib/memfs/memfs_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-12-09 02:20:30 +0700
committerShulhan <ms@kilabit.info>2023-12-09 02:20:30 +0700
commited9a59261448cf530c5c95dc0bd1923c915eafb4 (patch)
treed08b9d6a2d3579283e721e21772ee362b3461fa2 /lib/memfs/memfs_test.go
parent5d94c37862657ed1e76e6525c8b6c73ec659bedb (diff)
downloadpakakeh.go-ed9a59261448cf530c5c95dc0bd1923c915eafb4.tar.xz
lib/memfs: add parameter withContent to [Node.JSON]
If the parameter withContent is true, which is default in MarshalJSON, then all of the node content will be included in JSON output. This also changes the parameter withoutModTime to withModTime because working with negation make code not easy to read.
Diffstat (limited to 'lib/memfs/memfs_test.go')
-rw-r--r--lib/memfs/memfs_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/memfs/memfs_test.go b/lib/memfs/memfs_test.go
index 2e02c4f0..61b50bb7 100644
--- a/lib/memfs/memfs_test.go
+++ b/lib/memfs/memfs_test.go
@@ -431,7 +431,7 @@ func TestMemFS_Get_refresh(t *testing.T) {
// Check the tree of MemFS.
- rawJson, err = mfs.Root.JSON(9999, true)
+ rawJson, err = mfs.Root.JSON(9999, true, false)
if err != nil {
t.Fatal(err)
}