From 9860c7cec8efad1644e0fdfb4c358cb81f19f146 Mon Sep 17 00:00:00 2001 From: Marius Orcsik Date: Sat, 10 Nov 2018 22:37:06 +0100 Subject: [PATCH] Adding placeholder test functions --- activitystreams/actors_test.go | 134 +++++++++++++++++++++++++++++++++ activitystreams/item_test.go | 35 +++++++++ activitystreams/link_test.go | 32 ++++++++ activitystreams/object_test.go | 4 + activitystreams/uri_test.go | 20 +++++ 5 files changed, 225 insertions(+) create mode 100644 activitystreams/item_test.go diff --git a/activitystreams/actors_test.go b/activitystreams/actors_test.go index f4334cf..451189d 100644 --- a/activitystreams/actors_test.go +++ b/activitystreams/actors_test.go @@ -141,3 +141,137 @@ func TestPerson_IsObject(t *testing.T) { t.Errorf("%T should be a valid object", m) } } + +func TestActor_UnmarshalJSON(t *testing.T) { + +} + +func TestActor_GetActor(t *testing.T) { + +} + +func TestActor_GetID(t *testing.T) { + +} + +func TestActor_GetLink(t *testing.T) { + +} + +func TestActor_GetType(t *testing.T) { + +} + +func TestApplication_GetActor(t *testing.T) { + +} + +func TestApplication_GetID(t *testing.T) { + +} + +func TestApplication_GetLink(t *testing.T) { + +} + +func TestApplication_GetType(t *testing.T) { + +} + +func TestApplication_IsLink(t *testing.T) { + +} + +func TestApplication_IsObject(t *testing.T) { + +} +func TestGroup_GetActor(t *testing.T) { + +} + +func TestGroup_GetID(t *testing.T) { + +} + +func TestGroup_GetLink(t *testing.T) { + +} + +func TestGroup_GetType(t *testing.T) { + +} + +func TestGroup_IsLink(t *testing.T) { + +} + +func TestGroup_IsObject(t *testing.T) { + +} + +func TestOrganization_GetActor(t *testing.T) { + +} + +func TestOrganization_GetID(t *testing.T) { + +} + +func TestOrganization_GetLink(t *testing.T) { + +} + +func TestOrganization_GetType(t *testing.T) { + +} + +func TestOrganization_IsLink(t *testing.T) { + +} +func TestOrganization_IsObject(t *testing.T) { + +} + +func TestPerson_GetActor(t *testing.T) { + +} + +func TestPerson_GetID(t *testing.T) { + +} + +func TestPerson_GetLink(t *testing.T) { + +} + +func TestPerson_GetType(t *testing.T) { + +} + +func TestPerson_UnmarshalJSON(t *testing.T) { + +} + +func TestService_GetActor(t *testing.T) { + +} + +func TestService_GetID(t *testing.T) { + +} + +func TestService_GetLink(t *testing.T) { + +} + +func TestService_GetType(t *testing.T) { + +} + +func TestService_IsLink(t *testing.T) { + +} + +func TestService_IsObject(t *testing.T) { + +} diff --git a/activitystreams/item_test.go b/activitystreams/item_test.go new file mode 100644 index 0000000..9e54a78 --- /dev/null +++ b/activitystreams/item_test.go @@ -0,0 +1,35 @@ +package activitystreams + +import "testing" + +func TestItemCollection_Append(t *testing.T) { + +} + +func TestItemCollection_Collection(t *testing.T) { + +} + +func TestItemCollection_GetID(t *testing.T) { + +} + +func TestItemCollection_GetLink(t *testing.T) { + +} + +func TestItemCollection_GetType(t *testing.T) { + +} + +func TestItemCollection_IsLink(t *testing.T) { + +} + +func TestItemCollection_IsObject(t *testing.T) { + +} + +func TestItemCollection_First(t *testing.T) { + +} diff --git a/activitystreams/link_test.go b/activitystreams/link_test.go index e620afd..d1edea5 100644 --- a/activitystreams/link_test.go +++ b/activitystreams/link_test.go @@ -77,3 +77,35 @@ func TestMention_Object(t *testing.T) { t.Errorf("%#v should be an empty object", m.GetID()) } } + +func TestLink_GetID(t *testing.T) { + +} + +func TestLink_GetLink(t *testing.T) { + +} + +func TestLink_GetType(t *testing.T) { + +} + +func TestLink_UnmarshalJSON(t *testing.T) { + +} + +func TestMention_GetID(t *testing.T) { + +} + +func TestMention_GetLink(t *testing.T) { + +} + +func TestMention_GetType(t *testing.T) { + +} + +func TestMentionNew(t *testing.T) { + +} diff --git a/activitystreams/object_test.go b/activitystreams/object_test.go index 8c8fad0..5129335 100644 --- a/activitystreams/object_test.go +++ b/activitystreams/object_test.go @@ -436,3 +436,7 @@ func TestNaturalLanguageValueNew(t *testing.T) { t.Errorf("Initial %T should have length 0, received %d", n, len(n)) } } + +func TestNaturalLanguageValue_MarshalText(t *testing.T) { + +} diff --git a/activitystreams/uri_test.go b/activitystreams/uri_test.go index cad3a40..4118fd0 100644 --- a/activitystreams/uri_test.go +++ b/activitystreams/uri_test.go @@ -17,3 +17,23 @@ func TestIRI_String(t *testing.T) { t.Errorf("IRI %q should equal %q", u, val) } } + +func TestIRI_GetID(t *testing.T) { + +} + +func TestIRI_GetType(t *testing.T) { + +} + +func TestIRI_IsLink(t *testing.T) { + +} + +func TestIRI_IsObject(t *testing.T) { + +} + +func TestIRI_UnmarshalJSON(t *testing.T) { + +}