MCPcopy
hub / github.com/cloudfoundry/cli / IsVersionMet

Function IsVersionMet

integration/helpers/version.go:22–28  ·  view source on GitHub ↗

IsVersionMet verifies the targeted API meets the minimum required version

(minVersion string)

Source from the content-addressed store, hash-verified

20
21// IsVersionMet verifies the targeted API meets the minimum required version
22func IsVersionMet(minVersion string) bool {
23 version := matchMajorAPIVersion(minVersion)
24 ok, err := versioncheck.IsMinimumAPIVersionMet(version, minVersion)
25 Expect(err).ToNot(HaveOccurred())
26
27 return ok
28}
29
30// UAAVersion a struct representation of the UAA version
31type UAAVersion struct {

Callers 5

CommonGinkgoSetupFunction · 0.92
SkipIfVersionLessThanFunction · 0.85
SkipIfVersionAtLeastFunction · 0.85

Calls 2

IsMinimumAPIVersionMetFunction · 0.92
matchMajorAPIVersionFunction · 0.85

Tested by

no test coverage detected