mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-07 13:22:14 +00:00
test(coverage): improve lock-utils coverage via weekly agent run
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
0c548a0dbd
commit
d191a2bdfb
58 files changed
+107
-3120
No files matched your search
@@ -0,0 +1,13 @@
|
||||
---
|
||||
agent: test-coverage-agent
|
||||
cadence: weekly
|
||||
run-start: 2026-02-24T06:00:00Z
|
||||
---
|
||||
|
||||
Executed prompt: src/prompts/weekly/test-coverage-agent.md
|
||||
|
||||
**Goal:** Improve unit test coverage for `src/lock-utils.mjs`.
|
||||
|
||||
**Scope:** `src/lock-utils.mjs` and related test files.
|
||||
|
||||
**Constraints:** Do not break existing tests. Mock external dependencies.
|
||||
+1
-1
@@ -14,7 +14,7 @@ export { relayListLabel } from './utils.mjs';
|
||||
* @param {Object} deps - Dependency injection for testing
|
||||
* @returns {Promise<Set<string>>} - Set of agent names that have completed their task
|
||||
*/
|
||||
export async function getCompletedAgents(cadence, logDir, deps) {
|
||||
export async function getCompletedAgents(cadence, logDir, deps = {}) {
|
||||
const { readdir = fs.readdir, getDateStr = todayDateStr, getIsoWeek = getIsoWeekStr } = deps;
|
||||
const completed = new Set();
|
||||
const targetDir = path.join(logDir, cadence);
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
agent: test-coverage-agent
|
||||
cadence: weekly
|
||||
run-start: 2026-02-24T06:00:00Z
|
||||
---
|
||||
|
||||
**Command:** npm run test:unit:lock-backend
|
||||
**Result:** Passed
|
||||
|
||||
**Command:** node --test test/lock-utils.test.mjs
|
||||
**Result:** Passed
|
||||
|
||||
**Command:** npm run lint
|
||||
**Result:** Passed
|
||||
Reference in new issue
Block a user