gh#144: concurrent bridge clients queue instead of racing

Tests › tests/model/test_gh144_bridge_queue.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/model/test_gh144_bridge_queue.cpp:148 · its file's page

What it checks (12)

  1. REQUIRE(home != nullptr) not attributed
  2. REQUIRE(fs::is_regular_file(trunk)) not attributed
  3. REQUIRE(entropic_create(&h) == ENTROPIC_OK) observes entropic_create
  4. REQUIRE(entropic_configure_dir(h, dir.string().c_str()) == ENTROPIC_OK) observes entropic_configure_dir
  5. REQUIRE_FALSE(replies[i].empty()) not attributed
  6. CHECK(replies[i].find("already") == std::string::npos) not attributed
  7. CHECK(replies[i].find("ALREADY_RUNNING") == std::string::npos) not attributed
  8. CHECK(status_replies.load() > 0) not attributed
  9. REQUIRE(entropic_session_context_count( h, key.c_str(), &n) == ENTROPIC_OK) observes entropic_session_context_count
  10. CHECK(n > 0) not attributed
  11. REQUIRE(entropic_session_context_count(h, "", &def) == ENTROPIC_OK) observes entropic_session_context_count
  12. CHECK(def == 0) not attributed

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#144: concurrent bridge clients queue instead of racing→REQUIRE→write_file→entropic_create→entropic_create→entropic_configure_dir→entropic_configure_dir→WHEN→connect_client→ask→send_line→read_line→entropic_session_context_count→entropic_session_context_count→entropic_destroy→entropic_destroy

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#144: concurrent bridge clients queue instead of racing · 12 checksentropic_createREQ-ABI-001 · inferredentropic_configure_dirREQ-ABI-002 · inferredentropic_createREQ-API-002 · inferredentropic_createREQ-API-003 · inferredentropic_configure_dirREQ-API-004 · inferredentropic_configure_dirREQ-API-005 · inferredentropic_configure_dir… 10 calls …entropic_last_errorREQ-API-007 · inferredentropic_configure_dir… 8 calls …entropic_versionREQ-API-008 · inferredentropic_configure_dir… 3 calls …rewire_observersREQ-API-010 · inferredWHENfailure_detailREQ-API-012 · inferredentropic_configure_dirdo_configure_dirconfigure_commoninit_orchestratorREQ-API-013 · inferredentropic_destroystopREQ-BRIDGE-001 · inferred

and 64 more requirement paths, listed below.

Also reaches 79 requirements

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