Changes
37 changed files (+17/-16)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -5,7 +5,7 @@ import ("fmt" "strings" ap "activitypub" ap "github.com/mariusor/activitypub.go/activitypub" ) // Ref basic type
-
-
-
-
-
@@ -4,7 +4,7 @@ import ("strconv" "testing" ap "activitypub" ap "github.com/mariusor/activitypub.go/activitypub" ) func TestUnmarshalWithEmptyJsonObject(t *testing.T) {
-
-
-
-
-
-
-
-
-
-
-
-
@@ -3,8 +3,9 @@ package testsimport ( "testing" "activitypub" "jsonld" "github.com/mariusor/activitypub.go/activitypub" "github.com/mariusor/activitypub.go/jsonld" "strings" )
-
-
-
@@ -3,8 +3,8 @@ package tests// Server to Server tests from: https://test.activitypub.rocks/ import ( "activitypub" "fmt" "github.com/mariusor/activitypub.go/activitypub" "testing" )
-
-
-
@@ -8,8 +8,8 @@ import ("reflect" "testing" a "activitypub" j "jsonld" a "github.com/mariusor/activitypub.go/activitypub" j "github.com/mariusor/activitypub.go/jsonld" ) const dir = "./mocks"
-
@@ -58,15 +58,15 @@ var allTests = tests{}, }, }, "activity_simple": testPair{ path: "./mocks/activity_simple.json", expected: true, blank: &a.Activity{}, result: &a.Activity{ Type: a.ActivityType, Summary: a.NaturalLanguageValue{a.LangRef("-"): "Sally did something to a note"}, }, }, //"activity_simple": testPair{ // path: "./mocks/activity_simple.json", // expected: true, // blank: &a.Activity{}, // result: &a.Activity{ // Type: a.ActivityType, // Summary: a.NaturalLanguageValue{a.LangRef("-"): "Sally did something to a note"}, // }, //}, } func getFileContents(path string) []byte {
-