Skip to content

test: cover scan runner, normalize, and directory sync#65

Merged
WhiteMuush merged 1 commit into
mainfrom
test/52-coverage-scan-sync
Jun 19, 2026
Merged

test: cover scan runner, normalize, and directory sync#65
WhiteMuush merged 1 commit into
mainfrom
test/52-coverage-scan-sync

Conversation

@WhiteMuush

Copy link
Copy Markdown
Owner

What

Adds unit tests for the remaining sensitive modules from #52.

Coverage added

  • scan/normalize: normalizeType, parseBreachDate (missing/invalid/valid), sleep.
  • scan/runner: severityFor mapping (CRITICAL / HIGH / MEDIUM), now exported for testability; runScan for new-finding persistence, dedup against existing breach records, and provider-error isolation.
  • directory/sync: connection-not-found, provider failure → ERROR status + rethrow, and the success path (upsert per user, ACTIVE status, synced count).

Combined with crypto (#56) and scim-auth (#57), the test targets in the issue are complete.

Closes #52

🤖 Generated with Claude Code

Adds unit tests for the remaining sensitive modules listed in #52:
- scan/normalize: type normalization, breach-date parsing, sleep.
- scan/runner: severityFor mapping (exported for testability) and
  runScan persistence, dedup, and provider-error isolation.
- directory/sync: not-found, provider-error -> ERROR status, and the
  success path (upsert per user, ACTIVE status, synced count).

With crypto (#56) and scim-auth (#57) already covered, this completes
the test targets. Closes #52
@WhiteMuush WhiteMuush merged commit 84206b6 into main Jun 19, 2026
11 checks passed
@WhiteMuush WhiteMuush deleted the test/52-coverage-scan-sync branch June 19, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Increase test coverage

1 participant