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
Raw Normal View History

2019-12-05 15:43:55 +00:00
package activitypub
import "testing"
func TestID_UnmarshalJSON(t *testing.T) {
2019-12-05 18:02:15 +00:00
o := ID("")
2019-12-05 15:43:55 +00:00
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")
}