aboutsummaryrefslogtreecommitdiff
path: root/lib/memfs/embed_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memfs/embed_test.go')
-rw-r--r--lib/memfs/embed_test.go38
1 files changed, 6 insertions, 32 deletions
diff --git a/lib/memfs/embed_test.go b/lib/memfs/embed_test.go
index 99a7e8f6..4c414c9d 100644
--- a/lib/memfs/embed_test.go
+++ b/lib/memfs/embed_test.go
@@ -1,39 +1,13 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+// SPDX-License-Identifier: BSD-3-Clause
package memfs
-import "testing"
+import (
+ "testing"
+)
-func TestMemFS_GoEmbed(t *testing.T) {
- opts := &Options{
- Root: "testdata",
- Excludes: []string{
- `^\..*`,
- ".*/node_save$",
- },
- Embed: EmbedOptions{
- CommentHeader: `// SPDX-FileCopyrightText: 2022 Shulhan <ms@kilabit.info>
-// SPDX-License-Identifier: AGPL-3.0-or-later
-`,
- PackageName: "embed",
- GoFileName: "./internal/test/embed/embed_test.go",
- },
- }
-
- mfs, err := New(opts)
- if err != nil {
- t.Fatal(err)
- }
-
- err = mfs.GoEmbed()
- if err != nil {
- t.Fatal(err)
- }
-}
-
-func TestMemFS_GoEmbed_DisableModTime(t *testing.T) {
+func TestMemFS_GoEmbed_WithoutModTime(t *testing.T) {
opts := &Options{
Root: "testdata",
Excludes: []string{