(t *testing.T)
| 72 | } |
| 73 | |
| 74 | func TestNewRegistryEmpty(t *testing.T) { |
| 75 | reg := mustBuild(t, NewBuilder()) |
| 76 | if len(reg.AvailableTools(context.Background())) != 0 { |
| 77 | t.Fatalf("Expected tools to be empty") |
| 78 | } |
| 79 | if len(reg.AvailableResourceTemplates(context.Background())) != 0 { |
| 80 | t.Fatalf("Expected resourceTemplates to be empty") |
| 81 | } |
| 82 | if len(reg.AvailablePrompts(context.Background())) != 0 { |
| 83 | t.Fatalf("Expected prompts to be empty") |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | func TestNewRegistryWithTools(t *testing.T) { |
| 88 | tools := []ServerTool{ |
nothing calls this directly
no test coverage detected