MCPcopy Index your code
hub / github.com/devspace-sh/devspace / LessThanOrEqual

Method LessThanOrEqual

pkg/util/constraint/version.go:312–314  ·  view source on GitHub ↗

LessThanOrEqual tests if this version is less than or equal to another version.

(o *Version)

Source from the content-addressed store, hash-verified

310
311// LessThanOrEqual tests if this version is less than or equal to another version.
312func (v *Version) LessThanOrEqual(o *Version) bool {
313 return v.Compare(o) <= 0
314}
315
316// Metadata returns any metadata that was part of the version
317// string.

Callers 1

TestLessThanOrEqualFunction · 0.95

Calls 1

CompareMethod · 0.95

Tested by 1

TestLessThanOrEqualFunction · 0.76