TrendSink is a sink for a Trend
| 111 | |
| 112 | // TrendSink is a sink for a Trend |
| 113 | type TrendSink struct { |
| 114 | values []float64 |
| 115 | sorted bool |
| 116 | |
| 117 | count uint64 |
| 118 | min, max float64 |
| 119 | sum float64 |
| 120 | } |
| 121 | |
| 122 | // IsEmpty indicates whether the TrendSink is empty. |
| 123 | func (t *TrendSink) IsEmpty() bool { return t.count == 0 } |
nothing calls this directly
no outgoing calls
no test coverage detected