gh#204: entropic serve refuses to look up when it is not

Tests › tests/unit/api/serve_cli_test.cpp

absent Not in the packaged run: no test report names it.

What this test is for

Why it exists

The test says nothing about why.

tests/unit/api/serve_cli_test.cpp:224 · its file's page

What it checks (6)

  1. CHECK(wait_exit(pid, std::chrono::seconds(10)) == 1) observes wait_exit
  2. CHECK(slurp(s.stderr_log).find("usage: entropic serve") != std::string::npos) observes slurp
  3. CHECK(wait_exit(pid, std::chrono::seconds(30)) == 1) observes wait_exit
  4. CHECK(err.find("cannot start") != std::string::npos) observes slurp via err
  5. CHECK(err.find("HTTP listener") != std::string::npos) observes slurp via err
  6. CHECK(code == 1) observes wait_exit via code

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

gh#204: entropic serve refuses to look up when it is not→WHEN→spawn_serve→wait_exit→slurp

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.

gh#204: entropic serve refuses to look up when it is not · 6 checksWHENfailure_detailREQ-API-012 · inferred
Also reaches 1 requirement

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