Documentation ¶
Index ¶
- func GetCanonical(t *testing.T, raw string) string
- func GetCanonicalBytes(t *testing.T, raw string) []byte
- func GetExpiryService(t *testing.T) *expiry.Service
- func GetLoader(t *testing.T) *ld.DocumentLoader
- func GetTaskMgr(t *testing.T) *taskmgr.Manager
- func InitTracer(t *testing.T) *trace.TracerProvider
- func MarshalCanonical(t *testing.T, i interface{}) []byte
- func MustParseURL(raw string) *url.URL
- func NewMockID(iri fmt.Stringer, path string) *url.URL
- func NewMockURLs(num int, getURI func(i int) string) []*url.URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCanonical ¶
GetCanonical converts the given JSON string into a canonical JSON.
func GetCanonicalBytes ¶ added in v1.0.0
GetCanonicalBytes converts the given JSON string into a canonical JSON (returning the bytes).
func GetExpiryService ¶ added in v1.0.0
GetExpiryService returns test expiry service object. For most tests, the expiry service used doesn't really matter this object is just needed to ensure that no nil pointer errors happen when initializing the store.
func GetTaskMgr ¶ added in v1.0.0
GetTaskMgr returns a test task manager service.
func InitTracer ¶ added in v1.0.0
func InitTracer(t *testing.T) *trace.TracerProvider
InitTracer creates and registers globally a new TracerProvider.
func MarshalCanonical ¶ added in v1.0.0
MarshalCanonical marshals the given object to a canonical JSON.
func MustParseURL ¶
MustParseURL parses the given string and returns the URL. If the given string is not a valid URL then the function panics.
Types ¶
This section is empty.