diff options
| author | Shulhan <ms@kilabit.info> | 2021-12-26 01:20:27 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-12-26 01:20:27 +0700 |
| commit | d03648eb7f202a7298cb757796af81a35439f31e (patch) | |
| tree | 7c4db6387a119fc97d1ad9f126ba4db3d1b2fdc2 /lib/memfs/memfs_test.go | |
| parent | fc66ec6313054f9376890b83a4009ea866b7e9c1 (diff) | |
| download | pakakeh.go-d03648eb7f202a7298cb757796af81a35439f31e.tar.xz | |
lib/memfs: add method Init
The Init provided to initialize MemFS instance if its Options is set
directly, not through New() function.
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 ec5fb8b2..cdfd44a7 100644 --- a/lib/memfs/memfs_test.go +++ b/lib/memfs/memfs_test.go @@ -65,7 +65,7 @@ func TestNew(t *testing.T) { opts: Options{ Root: afile, }, - expErr: fmt.Sprintf("New: mount: createRoot: %s must be a directory", afile), + expErr: fmt.Sprintf("New: Init: mount: createRoot: %s must be a directory", afile), }, { desc: "With directory", opts: Options{ |
