MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / TestContinuousStats_EmptyData

Function TestContinuousStats_EmptyData

stats_test.go:24–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22}
23
24func TestContinuousStats_EmptyData(t *testing.T) {
25 cs := &ContinuousStats{}
26 data := []string{}
27
28 cs.summary(data)
29
30 summaryData := cs.getSummaryData()
31 if len(summaryData) == 0 {
32 t.Log("Empty data handled correctly")
33 }
34}
35
36func TestContinuousStats_SingleValue(t *testing.T) {
37 cs := &ContinuousStats{}

Callers

nothing calls this directly

Calls 2

summaryMethod · 0.95
getSummaryDataMethod · 0.95

Tested by

no test coverage detected