diff options
| author | Shulhan <ms@kilabit.info> | 2023-12-09 02:20:30 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-12-09 02:20:30 +0700 |
| commit | ed9a59261448cf530c5c95dc0bd1923c915eafb4 (patch) | |
| tree | d08b9d6a2d3579283e721e21772ee362b3461fa2 /lib/memfs/memfs_test.go | |
| parent | 5d94c37862657ed1e76e6525c8b6c73ec659bedb (diff) | |
| download | pakakeh.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.go | 2 |
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) } |
