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

Function TestWrappedRecordGetWithInvalidIndex

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

Source from the content-addressed store, hash-verified

60}
61
62func TestWrappedRecordGetWithInvalidIndex(t *testing.T) {
63 assertPanic(t, "access to an invalid index should panic", func() {
64 WrapRecord(&testRecord).Get(666)
65 })
66}
67
68func TestWrappedRecordMeta(t *testing.T) {
69 r := WrapRecord(&testRecord)

Callers

nothing calls this directly

Calls 3

assertPanicFunction · 0.85
WrapRecordFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected