Add schema to the root, fix test coverage #87

Merged
metal3d merged 7 commits from develop into master 2024-11-26 16:55:46 +00:00
Showing only changes of commit 9f1f6c7e78 - Show all commits

21
generator/version_test.go Normal file
View File

@@ -0,0 +1,21 @@
package generator
import (
"strings"
"testing"
)
func TestVersion(t *testing.T) {
// we build on "devel" branch
v := GetVersion()
if strings.Contains(v, "(devel)") {
t.Errorf("Expected version to be set, got %s", v)
}
// now, imagine we are on a release branch
Version = "release-1.0.0"
v = GetVersion()
if !strings.Contains(v, "release-1.0.0") {
t.Errorf("Expected version to be set, got %s", v)
}
}