package catalogue import ( "testing" ) // A manifest may say which tools its module calls (novox/hq ADR 0152), and the parser accepts the // two shapes the grant has: a named tool, and every tool. func TestAManifestMaySayWhatItInvokes(t *testing.T) { m, err := decodeForTest([]byte(`{"module":"mesh-console","version":"1",` + `"invokes":["mesh-catalog.catalog_modules","*"]}`)) if err != nil { t.Fatal(err) } if len(m.Invokes) != 2 || m.Invokes[1] != "*" { t.Fatalf("invokes not read: %v", m.Invokes) } }