test_boundary_flags_logic

Tests › tests/test_r1_richness.py

passed Passed in the packaged run.

What this test is for

Given

  1. —
→

When

  1. _boundary_flags(set(), {1})
  2. _boundary_flags({1}, set())
  3. _boundary_flags({1}, {1})
2 more
  1. _boundary_flags({1}, {2})
  2. _boundary_flags({1}, {2, 3})
→

Then

  1. ✓ _boundary_flags(set(), {1}) equals (None, None)
  2. ✓ _boundary_flags({1}, set()) equals (None, None)
  3. ✓ _boundary_flags({1}, {1}) equals (0, 1)
  4. ✓ _boundary_flags({1}, {2}) equals (1, 2)
  5. ✓ _boundary_flags({1}, {2, 3}) equals (1, None)

tests/test_r1_richness.py:926 · its file's page

What it checks (5)

  1. assert _boundary_flags(set(), {1}) == (None, None) observes _boundary_flags
  2. assert _boundary_flags({1}, set()) == (None, None) observes _boundary_flags
  3. assert _boundary_flags({1}, {1}) == (0, 1) observes _boundary_flags
  4. assert _boundary_flags({1}, {2}) == (1, 2) observes _boundary_flags
  5. assert _boundary_flags({1}, {2, 3}) == (1, None) observes _boundary_flags

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_boundary_flags_logic→_boundary_flags

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.

Requirements it verifies (5)

requirementlinked byimplementers exercised
REQ-DDB-SCHEMA-001catalogunknown
REQ-DDB-SCHEMA-002catalogunknown
REQ-DDB-SCHEMA-003catalogunknown
REQ-DDB-SCHEMA-004catalogunknown
REQ-DDB-SCHEMA-007catalogunknown