working commit

This commit is contained in:
2026-03-05 21:38:26 +02:00
parent b9f1f384fb
commit 48a2d95f14
3 changed files with 62 additions and 51 deletions
+2 -4
View File
@@ -1,16 +1,14 @@
package repocli
import (
"github.com/stretchr/testify/require"
ocidigest "github.com/opencontainers/go-digest"
"github.com/stretchr/testify/require"
"bytes"
"context"
"fmt"
"testing"
"time"
//"io"
)
func TestDigest(t *testing.T) {
@@ -23,7 +21,7 @@ func TestDigest(t *testing.T) {
ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
tmpdir := t.TempDir()
imager := NewImager(tmpdir)
imager := NewEmptyImager(tmpdir)
require.NotNil(t, imager)
digest := fmt.Sprintf("%s:%s", digestobj.Algorithm(), digestobj.Encoded())
size := int64(len(payload))