MCPcopy Create free account
hub / github.com/Debian/dcs / TestParseVersionWithEmbeddedSpaces

Function TestParseVersionWithEmbeddedSpaces

dpkgversion/dpkgversion_test.go:276–280  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

274}
275
276func TestParseVersionWithEmbeddedSpaces(t *testing.T) {
277 if _, err := Parse("0:0 0-1"); err == nil {
278 t.Errorf("Expected an error, but %q was parsed without an error", "0:0 0-1")
279 }
280}
281
282func TestParseVersionWithNegativeEpoch(t *testing.T) {
283 if _, err := Parse("-1:0-1"); err == nil {

Callers

nothing calls this directly

Calls 1

ParseFunction · 0.85

Tested by

no test coverage detected