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

Function BenchmarkWrappedRecordMeta

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

Source from the content-addressed store, hash-verified

40}
41
42func BenchmarkWrappedRecordMeta(b *testing.B) {
43 r := WrapRecord(&testRecord)
44 for i := 0; i < b.N; i++ {
45 if got := r.Meta("foo"); got != "bar" {
46 b.Fatalf("expecting '%s' for meta '%s', got '%s'", "bar", "foot", got)
47 }
48 }
49}
50
51func BenchmarkWrappedRecordDot(b *testing.B) {
52 testRecord.Data = []float32{3, 6, 9}

Callers

nothing calls this directly

Calls 2

WrapRecordFunction · 0.85
MetaMethod · 0.80

Tested by

no test coverage detected