From e4352e8a98c92b58a6316064911b3298c7e57c5f Mon Sep 17 00:00:00 2001 From: Kent Gruber Date: Wed, 2 May 2018 13:17:06 -0400 Subject: [PATCH] add test for Set function --- network/meta_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/network/meta_test.go b/network/meta_test.go index 39130e48..5806178b 100644 --- a/network/meta_test.go +++ b/network/meta_test.go @@ -23,3 +23,11 @@ func TestMetaMarshalJSON(t *testing.T) { t.Error("unable to marshal JSON from meta struct") } } + +func TestMetaSet(t *testing.T) { + example := buildExampleMeta() + example.Set("picat", "<3") + if example.m["picat"] != "<3" { + t.Error("unable to set meta data in struct") + } +}