test_classify_doxygen_line_buckets

Tests › tests/test_build_docs_db.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Verifies REQ-DDB-PIPE-001 REQ-DDB-PIPE-010

Given

  1. —
→

When

  1. _classify_doxygen_line("warning: X")
  2. _classify_doxygen_line("Error: oops")
  3. _classify_doxygen_line("Preprocessing /a.c...")
4 more
  1. _classify_doxygen_line("Parsing file /b.h...")
  2. _classify_doxygen_line("Generating XML output...")
  3. _classify_doxygen_line("Building member docs...")
  4. _classify_doxygen_line("Doxygen version 1.x")
→

Then

  1. ✓ _classify_doxygen_line("warning: X") equals "warning"
  2. ✓ _classify_doxygen_line("Error: oops") equals "warning"
  3. ✓ _classify_doxygen_line("Preprocessing /a.c...") equals "file"
  4. ✓ _classify_doxygen_line("Parsing file /b.h...") equals "file"
  5. ✓ _classify_doxygen_line("Generating XML output...") equals "phase"
  6. ✓ _classify_doxygen_line("Building member docs...") equals "phase"
  7. ✓ _classify_doxygen_line("Doxygen version 1.x") equals "other"

tests/test_build_docs_db.py:321 · its file's page

What it checks (7)

  1. assert _classify_doxygen_line("warning: X") == "warning" observes _classify_doxygen_line
  2. assert _classify_doxygen_line("Error: oops") == "warning" observes _classify_doxygen_line
  3. assert _classify_doxygen_line("Preprocessing /a.c...") == "file" observes _classify_doxygen_line
  4. assert _classify_doxygen_line("Parsing file /b.h...") == "file" observes _classify_doxygen_line
  5. assert _classify_doxygen_line("Generating XML output...") == "phase" observes _classify_doxygen_line
  6. assert _classify_doxygen_line("Building member docs...") == "phase" observes _classify_doxygen_line
  7. assert _classify_doxygen_line("Doxygen version 1.x") == "other" observes _classify_doxygen_line

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_classify_doxygen_line_buckets→_classify_doxygen_line

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 (2)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-001catalogunknown
REQ-DDB-PIPE-010catalogunknown