taskPluginControllerModelSource is a task plugin with one model; two plugins whose model names differ only in case conflict.
(key, version, modelName string)
| 62 | // taskPluginControllerModelSource is a task plugin with one model; two |
| 63 | // plugins whose model names differ only in case conflict. |
| 64 | func taskPluginControllerModelSource(key, version, modelName string) string { |
| 65 | return fmt.Sprintf(` |
| 66 | export const meta = {apiVersion: 1, key: %q, name: "Test", version: %q, author: {name: "Test"}, models: [%q], fetchMode: "per_task"}; |
| 67 | export function buildSubmitRequest() { return {}; } |
| 68 | export function parseSubmitResponse() { return {}; } |
| 69 | export function buildQueryRequest() { return {}; } |
| 70 | export function parseTaskResult() { return {}; } |
| 71 | `, key, version, modelName) |
| 72 | } |
| 73 | |
| 74 | func cleanupTaskPluginControllerRuntime(t *testing.T, key string) { |
| 75 | t.Helper() |
no outgoing calls
no test coverage detected