(t *testing.T)
| 51 | } |
| 52 | |
| 53 | func TestSeconds(t *testing.T) { |
| 54 | s := millionMessagesSecondSample(1) |
| 55 | seconds := s.End.Sub(s.Start).Seconds() |
| 56 | if seconds != s.Seconds() || seconds != 1.0 { |
| 57 | t.Fatal("Expected sample seconds to be 1 second") |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | func TestRate(t *testing.T) { |
| 62 | s := millionMessagesSecondSample(60) |
nothing calls this directly
no test coverage detected