MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / TestSubsetEmpty

Function TestSubsetEmpty

internal/tool/registry_test.go:89–96  ·  view source on GitHub ↗

Subset of nothing is a valid empty registry — used by subagents that shouldn't have any tools at all.

(t *testing.T)

Source from the content-addressed store, hash-verified

87// Subset of nothing is a valid empty registry — used by subagents that
88// shouldn't have any tools at all.
89func TestSubsetEmpty(t *testing.T) {
90 r := NewRegistry()
91 r.Register(fakeTool{name: "a"})
92 sub := r.Subset()
93 if len(sub.Definitions()) != 0 {
94 t.Errorf("Subset() should be empty, got %d defs", len(sub.Definitions()))
95 }
96}
97
98func TestExecuteUnknownReturnsErrorString(t *testing.T) {
99 r := NewRegistry()

Callers

nothing calls this directly

Calls 4

RegisterMethod · 0.95
SubsetMethod · 0.95
DefinitionsMethod · 0.80
NewRegistryFunction · 0.70

Tested by

no test coverage detected