test_the_package_depth_is_declared

Tests › tests/test_wiki_tuning.py

passed Passed in the packaged run.

What this test is for

Why it exists

C7: `src/main/java/com/acme/x.java` is one package `src/main` at depth 2, deeper at 4.

Given

  1. —
→

When

  1. package_of("src/main/java/com/acme/x.java")
  2. package_of("src/main/java/com/acme/x.java", depth=4)
→

Then

  1. ✓ package_of("src/main/java/com/acme/x.java") equals "src/main"
  2. ✓ package_of("src/main/java/com/acme/x.java", depth=4) equals "src/main/java/com"

tests/test_wiki_tuning.py:79 · its file's page

What it checks (2)

  1. assert package_of("src/main/java/com/acme/x.java") == "src/main" observes package_of
  2. assert package_of("src/main/java/com/acme/x.java", depth=4) == "src/main/java/com" observes package_of

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_package_depth_is_declared→package_of

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_package_depth_is_declared · 2 checkspackage_ofREQ-DDB-WIKI-019 · measured
Also reaches 1 requirement

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