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

Function TestContinuousStats_Summary

stats_test.go:11–22  ·  view source on GitHub ↗

======================================== Continuous Stats Tests ========================================

(t *testing.T)

Source from the content-addressed store, hash-verified

9// ========================================
10
11func TestContinuousStats_Summary(t *testing.T) {
12 cs := &ContinuousStats{}
13 data := []string{"10.5", "20.3", "15.7", "25.2", "18.9"}
14
15 cs.summary(data)
16
17 // Verify data was processed
18 summaryData := cs.getSummaryData()
19 if len(summaryData) == 0 {
20 t.Error("Expected summary data, got empty")
21 }
22}
23
24func TestContinuousStats_EmptyData(t *testing.T) {
25 cs := &ContinuousStats{}

Callers

nothing calls this directly

Calls 2

summaryMethod · 0.95
getSummaryDataMethod · 0.95

Tested by

no test coverage detected