aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/pkg_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-07 16:10:03 +0900
committerOphestra <cat@gensokyo.uk>2026-06-07 16:14:54 +0900
commit22e508fe17cdf6be6240e6b73ac5b90bc6bfd77e (patch)
treef4a2335664a6ea2448df8bf780432b59ac8a1661 /internal/pkg/pkg_test.go
parentb18ecf58326f9048afca885e2bf56d516578b1e4 (diff)
internal/pkg: expose measured reader to extern status
This is always required by the implementation. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg_test.go')
-rw-r--r--internal/pkg/pkg_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go
index 1239bed3..d4e9e855 100644
--- a/internal/pkg/pkg_test.go
+++ b/internal/pkg/pkg_test.go
@@ -204,7 +204,7 @@ type stubExtern struct {
status map[unique.Handle[pkg.ID]]string
}
-func (e stubExtern) Artifact(id unique.Handle[pkg.ID]) (*pkg.Checksum, error) {
+func (e stubExtern) Artifact(_ context.Context, id unique.Handle[pkg.ID]) (*pkg.Checksum, error) {
if checksum, ok := e.artifact[id]; ok {
return &checksum, nil
}
@@ -219,7 +219,7 @@ func (e stubExtern) Checksum(checksum unique.Handle[pkg.Checksum]) pkg.Artifact
return pkg.NewArchive(pkg.NewFile("", buf.Bytes()))
}
-func (e stubExtern) Status(id unique.Handle[pkg.ID]) (io.ReadCloser, error) {
+func (e stubExtern) Status(_ *pkg.RContext, id unique.Handle[pkg.ID]) (io.ReadCloser, error) {
if status, ok := e.status[id]; ok {
return io.NopCloser(strings.NewReader(status)), nil
}