(t *testing.T)
| 80 | } |
| 81 | |
| 82 | func TestGroupDuration(t *testing.T) { |
| 83 | sg := NewSampleGroup() |
| 84 | sg.AddSample(millionMessagesSecondSample(1)) |
| 85 | sg.AddSample(millionMessagesSecondSample(2)) |
| 86 | duration := sg.End.Sub(sg.Start) |
| 87 | if duration != sg.Duration() || duration != time.Duration(2)*time.Second { |
| 88 | t.Fatal("Expected aggregate duration to be 2.0 seconds") |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | func TestGroupSeconds(t *testing.T) { |
| 93 | sg := NewSampleGroup() |
nothing calls this directly
no test coverage detected