MCPcopy Index your code
hub / github.com/cloudfoundry/cli / SkipIfVersionAtLeast

Function SkipIfVersionAtLeast

integration/helpers/version.go:116–122  ·  view source on GitHub ↗

SkipIfVersionLessThan is used to skip tests if the API version >= the specified version. If maxVersion contains the prefix 3 then the v3 version is checked, otherwise the v2 version is used.

(maxVersion string)

Source from the content-addressed store, hash-verified

114// SkipIfVersionLessThan is used to skip tests if the API version >= the specified version. If
115// maxVersion contains the prefix 3 then the v3 version is checked, otherwise the v2 version is used.
116func SkipIfVersionAtLeast(maxVersion string) {
117 version := matchMajorAPIVersion(maxVersion)
118
119 if IsVersionMet(maxVersion) {
120 Skip(fmt.Sprintf("maximum version %s exceeded by API version %s", maxVersion, version))
121 }
122}
123
124func ignoreAPIVersion() bool {
125 ignoreEnv := os.Getenv("CF_INT_IGNORE_API_VERSION_CHECK")

Callers

nothing calls this directly

Calls 2

matchMajorAPIVersionFunction · 0.85
IsVersionMetFunction · 0.85

Tested by

no test coverage detected