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

Function TestWrapRecords

wrapper/records_test.go:92–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

90}
91
92func TestWrapRecords(t *testing.T) {
93 setupRecords(t, false)
94 defer teardownRecords(t)
95
96 records, err := storage.LoadRecords(testFolder)
97 if err != nil {
98 t.Fatal(err)
99 }
100
101 wrapped := WrapRecords(records)
102 if wrapped.records != records {
103 t.Fatal("unexpected records wrapped")
104 }
105}
106
107func TestWrappedRecordsFind(t *testing.T) {
108 setupRecords(t, true)

Callers

nothing calls this directly

Calls 3

WrapRecordsFunction · 0.85
setupRecordsFunction · 0.70
teardownRecordsFunction · 0.70

Tested by

no test coverage detected