Migrations run in order

Tests › tests/unit/storage/database_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/storage/database_test.cpp:69 · its file's page

What it checks (6)

  1. REQUIRE(t.db.initialize()) observes initialize
  2. REQUIRE(names.size() == 4) not attributed
  3. REQUIRE(names[0] == "001_initial") not attributed
  4. REQUIRE(names[1] == "002_fts") not attributed
  5. REQUIRE(names[2] == "003_delegations") not attributed
  6. REQUIRE(names[3] == "004_compaction_snapshots") 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

Migrations run in order→REQUIRE→initialize→WHEN→fetch_all

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.

Migrations run in order · 6 checksWHENfailure_detailREQ-API-012 · inferredinitializeREQ-STOR-001 · inferredfetch_allREQ-STOR-002 · inferredinitializerun_migrationsREQ-STOR-004 · inferred
Also reaches 4 requirements

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