From ec3227a16fda7de7bf7498ad16df2ac5ceb81082 Mon Sep 17 00:00:00 2001 From: Kent Gruber Date: Wed, 2 May 2018 13:16:49 -0400 Subject: [PATCH] add test for MarshalJSON function --- network/meta_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/network/meta_test.go b/network/meta_test.go index b293584a..39130e48 100644 --- a/network/meta_test.go +++ b/network/meta_test.go @@ -16,3 +16,10 @@ func TestNewMeta(t *testing.T) { t.Fatalf("expected '%v', got '%v'", exp, got) } } + +func TestMetaMarshalJSON(t *testing.T) { + _, err := buildExampleMeta().MarshalJSON() + if err != nil { + t.Error("unable to marshal JSON from meta struct") + } +}