Issue 1585, S19: the strict parser, every manifest problem function and the judge's tables (192 declarations, about 5,200 lines) and their 244 tests leave; composition keeps its own refusals and the helpers it uses. The catalogue's tests decode the manifests they build. ParseManifest, ParseManifestWith, ParseManifestForInputs, CatalogueProblems and the rest are gone; mesh-delivery-indexer/judge holds them. Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
19 lines
519 B
Go
19 lines
519 B
Go
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)
|
|
}
|
|
}
|