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

Function Test_AddErrorCount_1

core/state_test.go:54–65  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

52}
53
54func Test_AddErrorCount_1(t *testing.T) {
55 var wg sync.WaitGroup
56 wg.Add(2)
57
58 go addErrorCount(&wg, 50)
59
60 go addErrorCount(&wg, 60)
61
62 wg.Wait()
63
64 test.Equal(t, uint64(110), GlobalState.TotalErrorCount)
65}
66
67func Test_AddErrorCount_2(t *testing.T) {
68 var num, count uint64

Callers

nothing calls this directly

Calls 2

EqualFunction · 0.92
addErrorCountFunction · 0.85

Tested by

no test coverage detected