This commit is contained in:
2024-07-22 17:09:45 +02:00
parent 8db4d8c302
commit 6d650d68b1
5 changed files with 48 additions and 19 deletions

View File

@@ -8,10 +8,12 @@ func TestParseProjectMeta(t *testing.T) {
res, err := parseProjectMeta([]byte(metaPrjData))
if err != nil {
return t.Fatal(err)
t.Fatal(err)
}
if res.
if len(res.BuildFlags.Contents) < 1 {
t.Fatalf("Build flags are not as expected")
}
}
func TestParsingOfBuildResults(t *testing.T) {
@@ -29,7 +31,7 @@ func TestParsingOfBuildResults(t *testing.T) {
}
if res.Result[0].Binaries[0].Package != "Nudoku" ||
len(res.Result[0].Binaries[0].Binary) != 0 {
len(res.Result[0].Binaries[0].Binary) != 0 {
t.Fatal(res.Result[0].Binaries[0])
}