Changes
2 changed files (+9/-12)
-
-
@@ -1,6 +1,6 @@package activitypub var validCollectionTypes = [...]string{} var validCollectionTypes = [...]string{CollectionType, OrderedCollectionType} type Page ObjectOrLink
-
@@ -76,6 +76,7 @@ func OrderedCollectionNew(id ObjectId) *OrderedCollection {func CollectionPageNew(parent *Collection) *CollectionPage { return &CollectionPage{PartOf: parent} } func OrderedCollectionPageNew(parent *OrderedCollection) *OrderedCollectionPage { return &OrderedCollectionPage{PartOf: parent} }
-
-
-
@@ -2,7 +2,7 @@ package activitypubimport "testing" func TestCollectionsNew(t *testing.T) { func TestCollectionNew(t *testing.T) { var testValue = ObjectId("test") c := CollectionNew(testValue)
-
@@ -15,7 +15,7 @@ func TestCollectionsNew(t *testing.T) {} } func TestOrderedCollectionsNew(t *testing.T) { func TestOrderedCollectionNew(t *testing.T) { var testValue = ObjectId("test") c := OrderedCollectionNew(testValue)
-
@@ -48,14 +48,10 @@ func TestOrderedCollectionPageNew(t *testing.T) {} } func TestCollectionNew(t *testing.T) { } func TestOrderedCollectionNew(t *testing.T) { } func TestValidCollectionType(t *testing.T) { for _, validType := range validCollectionTypes { if !ValidCollectionType(validType) { t.Errorf("Generic Type '%#v' should be valid", validType) } } }
-