tests: lots of small asjustement

This commit is contained in:
Michael Muré
2024-11-20 14:55:48 +01:00
parent 2fb5a3dc01
commit aea1880386
27 changed files with 376 additions and 396 deletions

View File

@@ -1,20 +0,0 @@
// Package policytest provides values and functions that are useful when
// testing code that relies on Policies.
package policytest
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/ucan-wg/go-ucan/pkg/policy"
)
// EmptyPolicy provides a policy with no statements for testing purposes.
func EmptyPolicy(t *testing.T) policy.Policy {
t.Helper()
pol, err := policy.FromDagJson("[]")
require.NoError(t, err)
return pol
}