This repository has been archived on 2022-11-27. You can view files and clone it, but cannot push or open issues or pull requests.
activitypub/object_id_test.go

22 lines
362 B
Go

package activitypub
import "testing"
func TestID_UnmarshalJSON(t *testing.T) {
o := ID("")
dataEmpty := []byte("")
o.UnmarshalJSON(dataEmpty)
if o != "" {
t.Errorf("Unmarshaled object %T should be an empty string, received %q", o, o)
}
}
func TestID_IsValid(t *testing.T) {
t.Skip("TODO")
}
func TestID_MarshalJSON(t *testing.T) {
t.Skip("TODO")
}