MCPcopy Create free account
hub / github.com/evilsocket/sum / TestWrappedRecordMeta

Function TestWrappedRecordMeta

wrapper/record_test.go:68–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func TestWrappedRecordMeta(t *testing.T) {
69 r := WrapRecord(&testRecord)
70 for k, v := range testRecord.Meta {
71 if got := r.Meta(k); got != v {
72 t.Fatalf("expecting '%s' for meta '%s', got '%s'", v, k, got)
73 }
74 }
75}
76
77func TestWrappedRecordMetaWithInvalidKey(t *testing.T) {
78 r := WrapRecord(&testRecord)

Callers

nothing calls this directly

Calls 2

WrapRecordFunction · 0.85
MetaMethod · 0.80

Tested by

no test coverage detected