Skip to content

Test/coverage batch 2 - #2

Merged
lukislp merged 2 commits into
mainfrom
test/coverage-batch-2
Aug 6, 2026
Merged

Test/coverage batch 2#2
lukislp merged 2 commits into
mainfrom
test/coverage-batch-2

Conversation

@lukislp

@lukislp lukislp commented Aug 6, 2026

Copy link
Copy Markdown
Owner

test coverage batch 2

lukislp added 2 commits August 6, 2026 14:38
GetIconsForCategory called categoryName.Contains(...) unguarded, so a
null category name threw NullReferenceException instead of using the
"Allgemein" fallback that empty and unmatched names already get. Found
by the new CategoryIcons test suite; pinned by a regression test there.
…rations

~670 new tests across the six remaining large service clusters:

- Auth/WebAuthn (143): AuthService session restore, logout, 2FA, magic
  link, passkey login, IP-access branches; WebAuthnService driven with
  byte-accurate CBOR/COSE payloads and real P-256 keypairs through the
  hand-rolled parser and ECDSA verification, including DER signatures.
- Backup cluster (93): BackupManagementService, KeyBackupService,
  JsonBackupHelper, DatabaseRestoreService up to their live-server and
  relational-provider seams.
- ML cluster (95): SecurityRiskService, AnomalyDetectionService,
  CategoryPredictionService including tests pinning the currently
  broken ML training pipeline (schema mismatch on every reload).
- Reporting/Import/Export (100): ApplicationInsightsService,
  ExportService, ImportService.
- Database/GDPR (152): DatabaseHealthService (real relational paths via
  shared in-memory SQLite), DatabaseProviderService, GdprCleanupService,
  RateLimitService extended 7 -> 37.
- PDF/Integrations (134): PdfReportService fully covered (800/800),
  OllamaService, CloudflareService, CategoryIcons.

Several tests intentionally document currently-broken production
behavior (encrypted-backup restore, backup retention date math,
WebAuthn origin/counter checks, storage-location Excel export) rather
than asserting the intended behavior - candidates for follow-up fixes.

Coverage: 42% -> 73.7% (19880/26948 lines, CI measurement filters).
@lukislp
lukislp merged commit a07c231 into main Aug 6, 2026
6 of 7 checks passed
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.2.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@lukislp
lukislp deleted the test/coverage-batch-2 branch August 6, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant