MCPcopy Create free account
hub / github.com/QuantumNous/new-api / deleteTaskPluginVersionRequest

Function deleteTaskPluginVersionRequest

controller/task_plugin_test.go:1479–1487  ·  view source on GitHub ↗
(t *testing.T, key, version string)

Source from the content-addressed store, hash-verified

1477}
1478
1479func deleteTaskPluginVersionRequest(t *testing.T, key, version string) *httptest.ResponseRecorder {
1480 t.Helper()
1481 recorder := httptest.NewRecorder()
1482 context, _ := gin.CreateTestContext(recorder)
1483 context.Params = gin.Params{{Key: "key", Value: key}, {Key: "version", Value: version}}
1484 context.Request = httptest.NewRequest(http.MethodDelete, "/api/plugin/task/"+key+"/versions/"+version, nil)
1485 DeleteTaskPluginVersion(context)
1486 return recorder
1487}
1488
1489// The plugin list and detail name the declared routes the gateway leaves to
1490// the /{key} address, for the version that serves.

Calls 1

DeleteTaskPluginVersionFunction · 0.70

Tested by

no test coverage detected