(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestDuration(t *testing.T) { |
| 46 | s := millionMessagesSecondSample(1) |
| 47 | duration := s.End.Sub(s.Start) |
| 48 | if duration != s.Duration() || duration != time.Second { |
| 49 | t.Fatal("Expected sample duration to be 1 second") |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func TestSeconds(t *testing.T) { |
| 54 | s := millionMessagesSecondSample(1) |
nothing calls this directly
no test coverage detected