MCPcopy Create free account
hub / github.com/chainreactors/spray / TestRecordStat_NilStat

Function TestRecordStat_NilStat

core/runner_test.go:53–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

51}
52
53func TestRecordStat_NilStat(t *testing.T) {
54 r := &Runner{}
55 r.recordStat(nil)
56
57 stats := r.Stats()
58 if stats.Requests != 0 {
59 t.Fatalf("stats.Requests = %d, want 0 for nil stat", stats.Requests)
60 }
61}
62
63func TestOutputHandlerSuppressesFuzzyChannelWithoutFuzzyFlag(t *testing.T) {
64 var out bytes.Buffer

Callers

nothing calls this directly

Calls 2

recordStatMethod · 0.95
StatsMethod · 0.95

Tested by

no test coverage detected