(name, toolsetID string, readOnly bool, enableFlag, disableFlag string)
| 56 | var _ scopes.FetcherInterface = allScopesFetcher{} |
| 57 | |
| 58 | func mockToolWithFeatureFlag(name, toolsetID string, readOnly bool, enableFlag, disableFlag string) inventory.ServerTool { |
| 59 | tool := mockTool(name, toolsetID, readOnly) |
| 60 | tool.FeatureFlagEnable = enableFlag |
| 61 | if disableFlag != "" { |
| 62 | tool.FeatureFlagDisable = []string{disableFlag} |
| 63 | } |
| 64 | return tool |
| 65 | } |
| 66 | |
| 67 | func TestInventoryFiltersForRequest(t *testing.T) { |
| 68 | tools := []inventory.ServerTool{ |
no test coverage detected