From the SonarQube triage loop (2026-07-17). Six BLOCKER 'add at least one assertion' findings, each evaluated individually:
5 real-but-implicit: tests in S3MediaFallbackMiddlewareTests, BookArtifactPurgerTests, QuarantineMirrorTests, StagingMirrorTests (x2) rely on MockBehavior.Strict as the assertion (an unexpected store call throws). Legitimate idiom, but implicit: a reader (and sonar) can't see what the test guarantees, and if someone later relaxes the mock to Loose the test silently asserts nothing. Fix: add store.VerifyNoOtherCalls() — an explicit, sonar-visible assertion of exactly the same contract.
1 false positive by design (marked in SonarQube with comment): EnglishSourceDumpTool's env-gated [Fact] is a documented one-off translator-authoring tool, not a regression test — nothing to assert.
Test-only change, zero production surface.
From the SonarQube triage loop (2026-07-17). Six BLOCKER 'add at least one assertion' findings, each evaluated individually:
- **5 real-but-implicit**: tests in S3MediaFallbackMiddlewareTests, BookArtifactPurgerTests, QuarantineMirrorTests, StagingMirrorTests (x2) rely on `MockBehavior.Strict` as the assertion (an unexpected store call throws). Legitimate idiom, but implicit: a reader (and sonar) can't see what the test guarantees, and if someone later relaxes the mock to Loose the test silently asserts nothing. Fix: add `store.VerifyNoOtherCalls()` — an explicit, sonar-visible assertion of exactly the same contract.
- **1 false positive by design** (marked in SonarQube with comment): EnglishSourceDumpTool's env-gated [Fact] is a documented one-off translator-authoring tool, not a regression test — nothing to assert.
Test-only change, zero production surface.
Resolved in spikersoft-backend PR #343 (merged to master). The five strict-mock tests now assert their never-called contract explicitly via VerifyNoOtherCalls(); the sixth S2699 finding (EnglishSourceDumpTool) was false-positived in SonarQube with reasoning — it is a documented env-gated authoring tool with nothing to assert. All three touched test projects pass. Closing.
Resolved in spikersoft-backend PR #343 (merged to master). The five strict-mock tests now assert their never-called contract explicitly via VerifyNoOtherCalls(); the sixth S2699 finding (EnglishSourceDumpTool) was false-positived in SonarQube with reasoning — it is a documented env-gated authoring tool with nothing to assert. All three touched test projects pass. Closing.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
From the SonarQube triage loop (2026-07-17). Six BLOCKER 'add at least one assertion' findings, each evaluated individually:
MockBehavior.Strictas the assertion (an unexpected store call throws). Legitimate idiom, but implicit: a reader (and sonar) can't see what the test guarantees, and if someone later relaxes the mock to Loose the test silently asserts nothing. Fix: addstore.VerifyNoOtherCalls()— an explicit, sonar-visible assertion of exactly the same contract.Test-only change, zero production surface.
Resolved in spikersoft-backend PR #343 (merged to master). The five strict-mock tests now assert their never-called contract explicitly via VerifyNoOtherCalls(); the sixth S2699 finding (EnglishSourceDumpTool) was false-positived in SonarQube with reasoning — it is a documented env-gated authoring tool with nothing to assert. All three touched test projects pass. Closing.