(key, version string, channelType int)
| 51 | } |
| 52 | |
| 53 | func taskPluginControllerChannelSource(key, version string, channelType int) string { |
| 54 | return fmt.Sprintf(` |
| 55 | export const meta = {apiVersion: 1, key: %q, name: "Test", version: %q, author: {name: "Test"}, channelTypes: [%d], models: ["doc-1"], fetchMode: "per_task"}; |
| 56 | export function buildSubmitRequest() { return {}; } |
| 57 | export function parseSubmitResponse() { return {}; } |
| 58 | export function buildQueryRequest() { return {}; } |
| 59 | export function parseTaskResult() { return {}; } |
| 60 | `, key, version, channelType) |
| 61 | } |
| 62 | |
| 63 | func cleanupTaskPluginControllerRuntime(t *testing.T, key string) { |
| 64 | t.Helper() |
no outgoing calls
no test coverage detected