MCPcopy Create free account
hub / github.com/devspace-sh/devspace / prereleaseCheck

Function prereleaseCheck

pkg/util/constraint/constraint.go:180–190  ·  view source on GitHub ↗
(v, c *Version)

Source from the content-addressed store, hash-verified

178}
179
180func prereleaseCheck(v, c *Version) bool {
181 switch vPre, cPre := v.Prerelease() != "", c.Prerelease() != ""; {
182 case !cPre && vPre:
183 // OK
184 case cPre && !vPre:
185 // OK, except with the pessimistic operator
186 case !cPre && !vPre:
187 // OK
188 }
189 return true
190}
191
192//-------------------------------------------------------------------
193// Constraint functions

Callers 5

constraintGreaterThanFunction · 0.85
constraintLessThanFunction · 0.85
constraintLessThanEqualFunction · 0.85
constraintPessimisticFunction · 0.85

Calls 1

PrereleaseMethod · 0.80

Tested by

no test coverage detected