diff options
| author | Shulhan <ms@kilabit.info> | 2021-08-22 23:52:33 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-08-22 23:52:33 +0700 |
| commit | a049bbc175338d591873f73028e728ed480447d7 (patch) | |
| tree | 2884e80ba4985f040390a4a20dd948e994dd430d /lib/memfs/memfs_test.go | |
| parent | c1bd3574758c7070eb405922b56f0dfa056cad01 (diff) | |
| download | pakakeh.go-a049bbc175338d591873f73028e728ed480447d7.tar.xz | |
lib/memfs: add method Save and Encode
The Save method will write the new content to file system and update
the content of Node using Encode().
Diffstat (limited to 'lib/memfs/memfs_test.go')
| -rw-r--r-- | lib/memfs/memfs_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/memfs/memfs_test.go b/lib/memfs/memfs_test.go index 18dc1eab..4739df99 100644 --- a/lib/memfs/memfs_test.go +++ b/lib/memfs/memfs_test.go @@ -74,6 +74,7 @@ func TestNew(t *testing.T) { Excludes: []string{ "memfs_generate.go$", "direct$", + "node_save$", }, }, expMapKeys: []string{ @@ -99,6 +100,7 @@ func TestNew(t *testing.T) { `.*\.js$`, "memfs_generate.go$", "direct$", + "node_save$", }, }, expMapKeys: []string{ @@ -123,6 +125,7 @@ func TestNew(t *testing.T) { Excludes: []string{ "memfs_generate.go$", "direct$", + "node_save$", }, }, expMapKeys: []string{ |
