(t *testing.T)
| 148 | } |
| 149 | |
| 150 | func setupTaskPluginFactoryDisableTest(t *testing.T) { |
| 151 | t.Helper() |
| 152 | setupTaskPluginControllerTest(t) |
| 153 | originalMap := common.OptionMap |
| 154 | common.OptionMapRWMutex.Lock() |
| 155 | common.OptionMap = map[string]string{} |
| 156 | common.OptionMapRWMutex.Unlock() |
| 157 | t.Cleanup(func() { |
| 158 | jsplugin.DefaultRegistry.SetDisabledFactoryKeys(nil) |
| 159 | common.OptionMapRWMutex.Lock() |
| 160 | common.OptionMap = originalMap |
| 161 | common.OptionMapRWMutex.Unlock() |
| 162 | }) |
| 163 | } |
| 164 | |
| 165 | func postTaskPluginStatus(t *testing.T, key, query, body string) *httptest.ResponseRecorder { |
| 166 | t.Helper() |
no test coverage detected