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

Function NewVersion

pkg/util/constraint/version.go:49–51  ·  view source on GitHub ↗

NewVersion parses the given version and returns a new Version.

(v string)

Source from the content-addressed store, hash-verified

47// NewVersion parses the given version and returns a new
48// Version.
49func NewVersion(v string) (*Version, error) {
50 return newVersion(v, versionRegexp)
51}
52
53// NewSemver parses the given version and returns a new
54// Version that adheres strictly to SemVer specs

Callers 15

builder.goFile · 0.92
TestConstraintCheckFunction · 0.85
TestNewVersionFunction · 0.85
TestCoreFunction · 0.85
TestVersionCompareFunction · 0.85
TestVersionEqual_nilFunction · 0.85
TestComparePreReleasesFunction · 0.85
TestVersionMetadataFunction · 0.85
TestVersionPrereleaseFunction · 0.85
TestVersionSegmentsFunction · 0.85
TestVersionSegments64Function · 0.85

Calls 1

newVersionFunction · 0.85

Tested by 15

TestConstraintCheckFunction · 0.68
TestNewVersionFunction · 0.68
TestCoreFunction · 0.68
TestVersionCompareFunction · 0.68
TestVersionEqual_nilFunction · 0.68
TestComparePreReleasesFunction · 0.68
TestVersionMetadataFunction · 0.68
TestVersionPrereleaseFunction · 0.68
TestVersionSegmentsFunction · 0.68
TestVersionSegments64Function · 0.68
TestVersionStringFunction · 0.68