MCPcopy
hub / github.com/explosion/spaCy / test_pattern_validation

Function test_pattern_validation

spacy/tests/matcher/test_pattern_validation.py:81–83  ·  view source on GitHub ↗
(pattern, n_errors, _)

Source from the content-addressed store, hash-verified

79
80@pytest.mark.parametrize("pattern,n_errors,_", TEST_PATTERNS)
81def test_pattern_validation(pattern, n_errors, _):
82 errors = validate_token_pattern(pattern)
83 assert len(errors) == n_errors
84
85
86@pytest.mark.parametrize("pattern,n_errors,n_min_errors", TEST_PATTERNS)

Callers

nothing calls this directly

Calls 1

validate_token_patternFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…