MCPcopy Create free account
hub / github.com/Azure/peerd / Min

Function Min

pkg/math/compare.go:22–27  ·  view source on GitHub ↗

Min returns the smaller of x or y.

(x, y int)

Source from the content-addressed store, hash-verified

20
21// Min returns the smaller of x or y.
22func Min(x, y int) int {
23 if x < y {
24 return x
25 }
26 return y
27}

Callers 3

TestGetOrCreateFunction · 0.92
ReadAtMethod · 0.92
TestMinFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestGetOrCreateFunction · 0.74
TestMinFunction · 0.68