mockToolWithFlags creates a ServerTool with feature flags for testing
(name string, toolsetID string, readOnly bool, enableFlag, disableFlag string)
| 1046 | |
| 1047 | // mockToolWithFlags creates a ServerTool with feature flags for testing |
| 1048 | func mockToolWithFlags(name string, toolsetID string, readOnly bool, enableFlag, disableFlag string) ServerTool { |
| 1049 | tool := mockTool(name, toolsetID, readOnly) |
| 1050 | tool.FeatureFlagEnable = enableFlag |
| 1051 | if disableFlag != "" { |
| 1052 | tool.FeatureFlagDisable = []string{disableFlag} |
| 1053 | } |
| 1054 | return tool |
| 1055 | } |
| 1056 | |
| 1057 | func TestFeatureFlagEnable(t *testing.T) { |
| 1058 | tools := []ServerTool{ |
no test coverage detected