Files
dingtalk-workspace-cli/internal/cli/schema_delivery_maps_test_helpers_test.go
玉澜 e135440b98 refactor(cli): retire legacy-overlay schema stack and gate test fixtures
Drop the legacy-metadata overlay path (runtimeToolSpecAllowingLegacy,
assembleSchemaRegistryFromBoundAllowingLegacy, metadata-based agent
selection, dry-run seams) so assembly flows exclusively through
ContractFinal; gate MCP fixture machinery behind a build flag so it can
never enter production assembly. Wire output verified identical before
and after; policy tripwire reports 26 products, 847 tools.
2026-08-04 08:36:22 +08:00

22 lines
626 B
Go

// Copyright 2026 Alibaba Group
// Licensed under the Apache License, Version 2.0 (the "License");
package cli
import "testing"
func mustDeliverySchemaCatalogMaps(t *testing.T) loadedSchemaCatalog {
t.Helper()
if !SchemaSourceRootRegistered() {
t.Fatal("schema source root factory is not registered; package-cli TestMain should install assembly delivery")
}
if err := deliverySchemaCatalogError(); err != nil {
t.Fatalf("load delivery Schema Catalog: %v", err)
}
loaded := deliverySchemaCatalog()
if len(loaded.Snapshot.Tools) == 0 {
t.Fatal("delivery Schema Catalog tools maps are empty")
}
return loaded
}