(t *testing.T)
| 646 | } |
| 647 | |
| 648 | func TestServerToolIsReadOnly(t *testing.T) { |
| 649 | readTool := mockTool("read_tool", "toolset1", true) |
| 650 | writeTool := mockTool("write_tool", "toolset1", false) |
| 651 | |
| 652 | if !readTool.IsReadOnly() { |
| 653 | t.Error("Expected read tool to be read-only") |
| 654 | } |
| 655 | if writeTool.IsReadOnly() { |
| 656 | t.Error("Expected write tool to not be read-only") |
| 657 | } |
| 658 | } |
| 659 | |
| 660 | // mockResource creates a minimal ServerResourceTemplate for testing |
| 661 | func mockResource(name string, toolsetID string, uriTemplate string) ServerResourceTemplate { |
nothing calls this directly
no test coverage detected