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

Function taskPluginControllerTestSource

controller/task_plugin_test.go:43–51  ·  view source on GitHub ↗
(key, version string)

Source from the content-addressed store, hash-verified

41`
42
43func taskPluginControllerTestSource(key, version string) string {
44 return fmt.Sprintf(`
45export const meta = {apiVersion: 1, key: %q, name: "Test", version: %q, author: {name: "Test"}, models: ["doc-1"], fetchMode: "per_task"};
46export function buildSubmitRequest() { return {}; }
47export function parseSubmitResponse() { return {}; }
48export function buildQueryRequest() { return {}; }
49export function parseTaskResult() { return {}; }
50`, key, version)
51}
52
53func taskPluginControllerChannelSource(key, version string, channelType int) string {
54 return fmt.Sprintf(`

Calls

no outgoing calls

Tested by

no test coverage detected