6 gover "github.com/hashicorp/go-version"
9 func TestRevisionLen(t *testing.T) {
11 t.Error("revisionLen too long")
15 func TestCompare(t *testing.T) {
16 v1, err := gover.NewVersion(Version)
18 t.Fatal("Version 1 format error.")
20 v2, err := gover.NewVersion(Version + "+f873dfca")
22 t.Fatal("Version 2 format error.")
24 if v1.GreaterThan(v2) || v1.GreaterThan(v2) {
25 t.Error("Version comparison error.")
29 // In case someone edit the iota part and have the mapping changed:
33 func TestFlag(t *testing.T) {
35 t.Error("noUpdate value error")
38 t.Error("hasUpdate value error")
41 t.Error("noUpdate value error")