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

13 lines
248 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)
}
}