test_is_js_tree

Tests › tests/test_jsts.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Verifies REQ-DDB-PIPE-012

Given

  1. —
→

When

  1. is_js_tree(_tree("javascript", b"x;"))
  2. is_js_tree(_tree("python", b"x = 1\n"))
→

Then

  1. ✓ is_js_tree(_tree("javascript", b"x;")) holds
  2. ✓ is_js_tree(_tree("python", b"x = 1\n")) is false

tests/test_jsts.py:99 · its file's page

What it checks (2)

  1. assert is_js_tree(_tree("javascript", b"x;")) observes is_js_tree
  2. assert not is_js_tree(_tree("python", b"x = 1\n")) observes is_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→_tree

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.

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-012catalogunknown