diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-04 18:12:03 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-04 18:33:04 +0900 |
| commit | 76c1fb84c87ba12a22b64f7c471a92603365837f (patch) | |
| tree | de04c0a8a45a636ebe78fd06b3097e5b8493e9cc /internal/pkg/pkg_test.go | |
| parent | 729be19af39fb73e827bdb2798ac23942f9cf9e5 (diff) | |
internal/pkg: stream decompress artifact
The tarArtifact predates FileArtifact pipelining. This migrates decompression and buffering into a standalone artifact implementation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg_test.go')
| -rw-r--r-- | internal/pkg/pkg_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go index 25deb95c..ce11fa90 100644 --- a/internal/pkg/pkg_test.go +++ b/internal/pkg/pkg_test.go @@ -293,15 +293,15 @@ func TestIdent(t *testing.T) { a pkg.Artifact want unique.Handle[pkg.ID] }{ - {"tar", &stubArtifact{ - pkg.KindTar, - []byte{pkg.TarGzip, 0, 0, 0, 0, 0, 0, 0}, + {"decompress", &stubArtifact{ + pkg.KindDecompress, + []byte{pkg.Gzip, 0, 0, 0, 0, 0, 0, 0}, []pkg.Artifact{ overrideIdent{pkg.ID{}, new(stubArtifact)}, }, nil, }, unique.Make[pkg.ID](pkg.MustDecode( - "WKErnjTOVbuH2P9a0gM4OcAAO4p-CoX2HQu7CbZrg8ZOzApvWoO3-ISzPw6av_rN", + "97Y85QewssfPbNIN9cyNhzD4e6dLHcDTU8rb2c34k-aCrZfBNXFUc0duPiLFFcw_", ))}, } |
