Merge branch 'v1' into v1-meta-encryption

# Conflicts:
#	pkg/meta/meta.go
This commit is contained in:
Fabio Bozzo
2024-11-12 15:30:54 +01:00
8 changed files with 318 additions and 295 deletions

View File

@@ -5,7 +5,6 @@ import (
"testing"
"github.com/stretchr/testify/require"
"gotest.tools/v3/assert"
"github.com/ucan-wg/go-ucan/pkg/meta"
)
@@ -19,8 +18,7 @@ func TestMeta_Add(t *testing.T) {
t.Parallel()
err := (&meta.Meta{}).Add("invalid", &Unsupported{})
require.ErrorIs(t, err, meta.ErrUnsupported)
assert.ErrorContains(t, err, "*github.com/ucan-wg/go-ucan/pkg/meta_test.Unsupported")
require.Error(t, err)
})
t.Run("encrypted meta", func(t *testing.T) {