Lines Matching defs:Collector
28 type Collector struct { struct
29 t *testing.T
30 name string
31 opts *AcceptanceOpts
33 collected map[float64][]models.GettableAlerts
34 expected map[Interval][]models.GettableAlerts
36 mtx sync.RWMutex
39 func (c *Collector) String() string {
45 func (c *Collector) Collected() map[float64][]models.GettableAlerts {
73 func (c *Collector) latest() float64 {
87 func (c *Collector) Want(iv Interval, alerts ...*TestAlert) {
99 func (c *Collector) add(alerts ...*models.GettableAlert) {
107 func (c *Collector) Check() string {
195 func CompareCollectors(a, b *Collector, opts *AcceptanceOpts) (bool, error) {