Equal returns true if this SamplePair and o have equal Values and equal Timestamps. The semantics of Value equality is defined by SampleValue.Equal.
(o *SamplePair)
| 90 | // Equal returns true if this SamplePair and o have equal Values and equal |
| 91 | // Timestamps. The semantics of Value equality is defined by SampleValue.Equal. |
| 92 | func (s *SamplePair) Equal(o *SamplePair) bool { |
| 93 | return s == o || (s.Value.Equal(o.Value) && s.Timestamp.Equal(o.Timestamp)) |
| 94 | } |
| 95 | |
| 96 | func (s SamplePair) String() string { |
| 97 | return fmt.Sprintf("%s @[%s]", s.Value, s.Timestamp) |
nothing calls this directly
no outgoing calls
no test coverage detected