MCPcopy
hub / github.com/Doorman11991/smallcode / doneStatus

Method doneStatus

src/session/contract.js:185–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183 }
184
185 doneStatus() {
186 const total = this.assertions.length;
187 const passed = this.passed().length;
188 const failed = this.failed().length;
189 const pending = this.pending().length;
190 const skipped = this.skipped().length;
191 return {
192 done: this.isDone(),
193 total,
194 passed,
195 failed,
196 pending,
197 skipped,
198 blockers: [...this.pending(), ...this.failed()].map((a) => ({ id: a.id, text: a.text, state: a.state })),
199 };
200 }
201
202 setAssertionState(assertionId, state, opts = {}) {
203 if (!Object.values(STATES).includes(state)) {

Callers 4

statusPayloadFunction · 0.80
listMethod · 0.80
completeMethod · 0.80
checkDoneGuardFunction · 0.80

Calls 5

passedMethod · 0.95
failedMethod · 0.95
pendingMethod · 0.95
skippedMethod · 0.95
isDoneMethod · 0.95

Tested by

no test coverage detected