This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package architecture_test
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestArchitectureRegistryParses(t *testing.T) {
|
||||
b, err := os.ReadFile("../../architecture/architecture-registry.json")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
var v map[string]any
|
||||
if err := json.Unmarshal(b, &v); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if v["semantic_generation"] == nil {
|
||||
t.Fatal("semantic_generation missing")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user