Why this matters
Virtual time makes async tests fast and deterministic.
Test suspend code with kotlinx-coroutines-test runTest {} and virtual time (advanceUntilIdle()); do not block with Thread.sleep.
Virtual time makes async tests fast and deterministic.
Side-by-side examples engineers can pattern-match during review.
@Test fun loads(){\n Thread.sleep(1000)\n val v = runBlocking { load() }\n assertTrue(v > 0)\n}@Test fun loads() = runTest {
val v = load()
advanceUntilIdle()
assertTrue(v > 0)
}@Test fun x() = runTest { advanceUntilIdle() }Thread.sleep(500); // in testFrom the same buckets as this rule.
Reject PRs adding real PAN/CVV in fixtures, seeds, or mocks. Only use Luhn-valid test PANs from the gateway or opaque tokens (e.g., tok_) and never include CVV. Add a check to fail if a PAN regex is matched. (PCI DSS data minimization)