Product lock input mapping
Verification Boundary
The assertions call deterministic mapping and rule functions with supplied inputs. No live persistence or HTTP boundary is exercised.
What This Suite Proves
Mapper assertions distinguish absent, empty and supplied protection values in create and replacement bodies.
What It Does Not Prove
These assertions do not prove workspace enforcement, transactional rollback, concurrent writes or deployed behavior.
Real Dependencies and Test Doubles
The functions under test are real JavaScript or compiled service code. Inputs and surrounding contexts are fixtures; PostgreSQL and external applications are absent.
Must Not Be Doubled
Keep the function under test and its actual return or refusal behavior real. Do not treat a fixture assertion as database, permission or lifecycle proof.