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

Function deleteTaskPluginVersionRequest

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

Source from the content-addressed store, hash-verified

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

Calls 1

DeleteTaskPluginVersionFunction · 0.70

Tested by

no test coverage detected