From 24fa9f805dd81cac96fb16b5643a6daea62dde9a Mon Sep 17 00:00:00 2001 From: Marius Orcsik Date: Sun, 15 Dec 2019 19:01:29 +0100 Subject: [PATCH] Added some test todos --- activity_test.go | 8 ++++++ collection_page_test.go | 24 ++++++++++++++++++ collection_test.go | 5 ++++ iri_test.go | 8 ++++++ item_collection_test.go | 55 +++++++++++++++++++++++++++++++++++++++++ item_test.go | 42 +------------------------------ unmarshal_test.go | 20 +++++++++++++++ 7 files changed, 121 insertions(+), 41 deletions(-) create mode 100644 item_collection_test.go diff --git a/activity_test.go b/activity_test.go index 3ee0626..635cfa2 100644 --- a/activity_test.go +++ b/activity_test.go @@ -969,3 +969,11 @@ func TestActivity_Clean(t *testing.T) { func TestActivity_IsCollection(t *testing.T) { t.Skipf("TODO") } + +func TestActivity_GetLink(t *testing.T) { + t.Skipf("TODO") +} + +func TestActivity_GetType(t *testing.T) { + t.Skipf("TODO") +} diff --git a/collection_page_test.go b/collection_page_test.go index 0f7c8d4..7eaeb54 100644 --- a/collection_page_test.go +++ b/collection_page_test.go @@ -143,3 +143,27 @@ func TestToCollectionPage(t *testing.T) { func TestCollectionPage_Contains(t *testing.T) { t.Skipf("TODO") } + +func TestCollectionPage_GetID(t *testing.T) { + t.Skipf("TODO") +} + +func TestCollectionPage_GetLink(t *testing.T) { + t.Skipf("TODO") +} + +func TestCollectionPage_GetType(t *testing.T) { + t.Skipf("TODO") +} + +func TestCollectionPage_IsCollection(t *testing.T) { + t.Skipf("TODO") +} + +func TestCollectionPage_IsLink(t *testing.T) { + t.Skipf("TODO") +} + +func TestCollectionPage_IsObject(t *testing.T) { + t.Skipf("TODO") +} diff --git a/collection_test.go b/collection_test.go index 7a0d1c8..59a5f6f 100644 --- a/collection_test.go +++ b/collection_test.go @@ -169,3 +169,8 @@ func TestToCollection(t *testing.T) { func TestCollection_Contains(t *testing.T) { t.Skipf("TODO") } + +func TestCollection_IsCollection(t *testing.T) { + t.Skipf("TODO") +} + diff --git a/iri_test.go b/iri_test.go index e39e119..8d5bd37 100644 --- a/iri_test.go +++ b/iri_test.go @@ -210,3 +210,11 @@ func TestIRI_Equals(t *testing.T) { } } } + +func TestIRI_Contains(t *testing.T) { + t.Skip("TODO") +} + +func TestIRI_IsCollection(t *testing.T) { + t.Skip("TODO") +} diff --git a/item_collection_test.go b/item_collection_test.go new file mode 100644 index 0000000..f3da727 --- /dev/null +++ b/item_collection_test.go @@ -0,0 +1,55 @@ +package activitypub + +import "testing" + +func TestItemCollection_Append(t *testing.T) { + t.Skipf("TODO") +} + +func TestItemCollection_Collection(t *testing.T) { + t.Skipf("TODO") +} + +func TestItemCollection_GetID(t *testing.T) { + t.Skipf("TODO") +} + +func TestItemCollection_GetLink(t *testing.T) { + t.Skipf("TODO") +} + +func TestItemCollection_GetType(t *testing.T) { + t.Skipf("TODO") +} + +func TestItemCollection_IsLink(t *testing.T) { + t.Skipf("TODO") +} + +func TestItemCollection_IsObject(t *testing.T) { + t.Skipf("TODO") +} + +func TestItemCollection_First(t *testing.T) { + t.Skipf("TODO") +} + +func TestFlattenItemCollection(t *testing.T) { + t.Skipf("TODO") +} + +func TestItemCollection_Count(t *testing.T) { + t.Skipf("TODO") +} + +func TestItemCollection_Contains(t *testing.T) { + t.Skipf("TODO") +} + +func TestItemCollection_IsCollection(t *testing.T) { + t.Skipf("TODO") +} + +func TestToItemCollection(t *testing.T) { + t.Skipf("TODO") +} diff --git a/item_test.go b/item_test.go index 2584123..191cfd0 100644 --- a/item_test.go +++ b/item_test.go @@ -2,46 +2,6 @@ package activitypub import "testing" -func TestItemCollection_Append(t *testing.T) { - t.Skipf("TODO") -} - -func TestItemCollection_Collection(t *testing.T) { - t.Skipf("TODO") -} - -func TestItemCollection_GetID(t *testing.T) { - t.Skipf("TODO") -} - -func TestItemCollection_GetLink(t *testing.T) { - t.Skipf("TODO") -} - -func TestItemCollection_GetType(t *testing.T) { - t.Skipf("TODO") -} - -func TestItemCollection_IsLink(t *testing.T) { - t.Skipf("TODO") -} - -func TestItemCollection_IsObject(t *testing.T) { - t.Skipf("TODO") -} - -func TestItemCollection_First(t *testing.T) { - t.Skipf("TODO") -} - -func TestFlattenItemCollection(t *testing.T) { - t.Skipf("TODO") -} - -func TestItemCollection_Count(t *testing.T) { - t.Skipf("TODO") -} - -func TestItemCollection_Contains(t *testing.T) { +func TestFlatten(t *testing.T) { t.Skipf("TODO") } diff --git a/unmarshal_test.go b/unmarshal_test.go index 400a78a..4327785 100644 --- a/unmarshal_test.go +++ b/unmarshal_test.go @@ -196,3 +196,23 @@ func TestJSONUnmarshalToItem(t *testing.T) { func TestJSONGetActorEndpoints(t *testing.T) { t.Skipf("TODO") } + +func TestJSONGetBoolean(t *testing.T) { + t.Skipf("TODO") +} + +func TestJSONGetBytes(t *testing.T) { + t.Skipf("TODO") +} + +func TestJSONGetFloat(t *testing.T) { + t.Skipf("TODO") +} + +func TestJSONGetPublicKey(t *testing.T) { + t.Skipf("TODO") +} + +func TestJSONGetStreams(t *testing.T) { + t.Skipf("TODO") +}