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 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 ¶
GetCanonicalBytes converts the given JSON string into a canonical JSON (returning the bytes).
func GetExpiryService ¶
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 MarshalCanonical ¶
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.
Click to show internal directories.
Click to hide internal directories.