test_is_js_tree¶
Tests › tests/test_jsts.py
What this test is for
Given
- —
When
is_js_tree(_tree("javascript", b"x;"))is_js_tree(_tree("python", b"x = 1\n"))
Then
- ✓ is_js_tree(_tree("javascript", b"x;")) holds
- ✓ is_js_tree(_tree("python", b"x = 1\n")) is false
tests/test_jsts.py:99 · its file's page
What it checks (2)
assert is_js_tree(_tree("javascript", b"x;"))observesis_js_treeassert not is_js_tree(_tree("python", b"x = 1\n"))observesis_js_tree
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_is_js_tree→is_js_tree→_treeWhat 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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-012 | catalog | unknown |