test_the_repositorys_files_licences_are_summarised

Tests › tests/test_wiki_sbom.py

passed Passed in the packaged run.

What this test is for

Why it exists

S5: counts by licence, and how many indexed files carry no identifier.

Given

  1. —
→

When

  1. html = sbom_html([], (), {"MIT": 40, "Apache-2.0": 2}, 7)
  2. files = html.split('<section class="file-licences">', 1)[1]
→

Then

  1. ✓ files contains "MIT"
  2. ✓ files contains ">40<"
  3. ✓ files contains "7 indexed files carry no SPDX identifier"
  4. ✓ html contains "No SBOM"

tests/test_wiki_sbom.py:116 · its file's page

What it checks (2)

  1. assert ( "MIT" in files and ">40<" in files and "7 indexed files carry no SPDX identifier" in files ) not attributed
  2. assert "No SBOM" in html observes sbom_html via html

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_the_repositorys_files_licences_are_summarised→sbom_html

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_the_repositorys_files_licences_are_summarised · 2 checkssbom_htmlREQ-DDB-WIKI-051 · measuredsbom_html_row_acceptedallREQ-DDB-WIKI-054 · inferred
Also reaches 2 requirements

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