test_this_inside_a_mixin_is_qualified_by_the_mixin

Tests › tests/test_ts_mixins.py

passed Passed in the packaged run.

What this test is for

Why it exists

this.m() inside a mixin is qualified by the mixin's class.

Given

  1. sites = harvest_calls( lps.parse_tree("typescript", _MIXIN), _MIXIN, "ast", "ast_member", "binding" )
  2. qualifiers = {s[3] for s in sites if s[0] == "doFetch"}
→

When

  1. —
→

Then

  1. ✓ qualifiers equals {"ClientFiles.doFetch", "ClientUsers.doFetch"}

tests/test_ts_mixins.py:93 · its file's page

What it checks (1)

  1. assert qualifiers == {"ClientFiles.doFetch", "ClientUsers.doFetch"}, qualifiers not attributed

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.

Also reaches 1 requirement

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