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

Function TestWrapRecord

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

Source from the content-addressed store, hash-verified

17}
18
19func TestWrapRecord(t *testing.T) {
20 wrapped := WrapRecord(&testRecord)
21 if wrapped.ID != testRecord.Id {
22 t.Fatalf("expected record with id %d, %d found", testRecord.Id, wrapped.ID)
23 } else if !reflect.DeepEqual(*wrapped.record, testRecord) {
24 t.Fatal("unexpected wrapped record")
25 }
26}
27
28func TestWrapRecordWithNil(t *testing.T) {
29 wrapped := WrapRecord(nil)

Callers

nothing calls this directly

Calls 1

WrapRecordFunction · 0.85

Tested by

no test coverage detected