MCPcopy Create free account
hub / github.com/devfeel/dotweb / Benchmark_AddErrorCount_1

Function Benchmark_AddErrorCount_1

core/state_test.go:85–90  ·  view source on GitHub ↗

performance tests

(b *testing.B)

Source from the content-addressed store, hash-verified

83// performance tests
84
85func Benchmark_AddErrorCount_1(b *testing.B) {
86 var num uint64 = 1
87 for i := 0; i < b.N; i++ {
88 GlobalState.AddErrorCount("test", errors.New("test error"), num)
89 }
90}
91
92func Benchmark_AddErrorCount_Parallel(b *testing.B) {
93 b.RunParallel(func(pb *testing.PB) {

Callers

nothing calls this directly

Calls 1

AddErrorCountMethod · 0.80

Tested by

no test coverage detected