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

Function TestContinuousStats_SingleValue

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

Source from the content-addressed store, hash-verified

34}
35
36func TestContinuousStats_SingleValue(t *testing.T) {
37 cs := &ContinuousStats{}
38 data := []string{"42.0"}
39
40 cs.summary(data)
41
42 summaryData := cs.getSummaryData()
43 if len(summaryData) == 0 {
44 t.Error("Should handle single value")
45 }
46}
47
48func TestContinuousStats_WithNaN(t *testing.T) {
49 cs := &ContinuousStats{}

Callers

nothing calls this directly

Calls 2

summaryMethod · 0.95
getSummaryDataMethod · 0.95

Tested by

no test coverage detected