test_declared_wrapper_merges_over_the_builtin_primitives

Tests › tests/test_locks.py

passed Passed in the packaged run.

What this test is for

Why it exists

The built-ins are language/OS primitives. A project's OWN guard type is DECLARED, never guessed — and declaring one must not drop the defaults.

Given

  1. —
→

When

  1. patterns = load_lock_patterns({"locks": [{"name": "ScopedLock", "form": "raii"}]})
  2. names = {p.name for p in patterns}
→

Then

  1. ✓ names contains "ScopedLock"
  2. ✓ {p.name for p in DEFAULT_LOCK_PATTERNS} is at most names

tests/test_locks.py:189 · its file's page

What it checks (2)

  1. assert "ScopedLock" in names not attributed
  2. assert {p.name for p in DEFAULT_LOCK_PATTERNS} <= names not attributed

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

test_declared_wrapper_merges_over_the_builtin_primitives→load_lock_patterns

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

test_declared_wrapper_merges_over_the_builtin_primitives · 2 checksload_lock_patternsREQ-DDB-SCHEMA-011 · measuredload_lock_patternsdeclaration_originREQ-DDB-SCHEMA-012 · measured
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.