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

Function BenchmarkWrappedRecordIs

wrapper/record_benchmark_test.go:19–28  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

17}
18
19func BenchmarkWrappedRecordIs(b *testing.B) {
20 a := WrapRecord(&testRecord)
21 c := WrapRecord(&testRecord)
22
23 for i := 0; i < b.N; i++ {
24 if !a.Is(c) {
25 b.Fatal("records should match")
26 }
27 }
28}
29
30func BenchmarkWrappedRecordGet(b *testing.B) {
31 r := WrapRecord(&testRecord)

Callers

nothing calls this directly

Calls 2

WrapRecordFunction · 0.85
IsMethod · 0.45

Tested by

no test coverage detected