MCPcopy Create free account
hub / github.com/Botloader/botloader / sendScriptCompletion

Function sendScriptCompletion

integration-tests/lib.ts:5–12  ·  view source on GitHub ↗
(name: String)

Source from the content-addressed store, hash-verified

3const run_tracker = script.createStorageJson("lib_run_tests");
4
5export async function sendScriptCompletion(name: String) {
6 if (await run_tracker.setIf("completed_" + name, true, "IfNotExists")) {
7 sendTestingEvent("ScriptComplete");
8 console.log(`${name} completed`)
9 } else {
10 throw new Error(`Tried to complete test twice: ${name}`)
11 }
12}
13
14export function sendTestingEvent(event: TestingEvent) {
15 console.log(`INTEGRATION_TEST:${JSON.stringify(event)}`)

Callers 15

http.tsFile · 0.90
attachment.tsFile · 0.90
roles.tsFile · 0.90
threads.tsFile · 0.90
commands.tsFile · 0.90
tasks_del.tsFile · 0.90
permissions2.tsFile · 0.90
messagecreate.tsFile · 0.90
emoji.tsFile · 0.90
pins.tsFile · 0.90
get_members.tsFile · 0.90
components.tsFile · 0.90

Calls 2

sendTestingEventFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected