MCPcopy Create free account
hub / github.com/github/gh-aw / Min

Method Min

pkg/stats/statvar.go:65–70  ·  view source on GitHub ↗

Min returns the smallest observed value, or 0 if no observations have been added.

()

Source from the content-addressed store, hash-verified

63
64// Min returns the smallest observed value, or 0 if no observations have been added.
65func (s *StatVar) Min() float64 {
66 if s.count == 0 {
67 return 0
68 }
69 return s.min
70}
71
72// Max returns the largest observed value, or 0 if no observations have been added.
73func (s *StatVar) Max() float64 {

Callers 8

TestStatVar_EmptyFunction · 0.95
TestStatVar_OddCountFunction · 0.95
TestStatVar_EvenCountFunction · 0.95
applyMetricsTrendStatsFunction · 0.80

Calls

no outgoing calls

Tested by 7

TestStatVar_EmptyFunction · 0.76
TestStatVar_OddCountFunction · 0.76
TestStatVar_EvenCountFunction · 0.76