aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/pkg_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-12 04:34:50 +0900
committerOphestra <cat@gensokyo.uk>2026-01-12 04:34:50 +0900
commit610572d0e6a6edfe3c2ffd1bfcca1396cad6818f (patch)
tree9fed46f6f3075b8391b6ab0891880b7f539069aa /internal/pkg/pkg_test.go
parent29951c51749f1c3f5ca96488bff6eee247c03dc7 (diff)
internal/pkg: optionally named static file
These are generally for generating configuration files or build scripts, naming them is quite useful. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg_test.go')
-rw-r--r--internal/pkg/pkg_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go
index 2c664385..f5e6dc5c 100644
--- a/internal/pkg/pkg_test.go
+++ b/internal/pkg/pkg_test.go
@@ -496,7 +496,7 @@ func TestCache(t *testing.T) {
if _, _, err = c.Cure(stubArtifactF{
kind: pkg.KindExec,
params: []byte("unreachable artifact cured after cancel"),
- deps: []pkg.Artifact{pkg.NewFile([]byte("unreachable dependency"))},
+ deps: []pkg.Artifact{pkg.NewFile("", []byte("unreachable dependency"))},
}); !reflect.DeepEqual(err, context.Canceled) {
t.Fatalf("(closed) Cure: error = %v", err)
}