Functionsยง
- apply_
custom_ assertion_ fallback - Apply custom assertion pattern fallback to functions with assertion_count == 0. Only functions with no detected assertions are augmented; others are untouched.
- collect_
mock_ class_ names - count_
captures - count_
captures_ within_ context - Count captures of
inner_capturefrominner_querythat fall within byte ranges ofouter_capturefromouter_query. - count_
custom_ assertion_ lines - Text-based fallback for T001 escape hatch. Patterns are literal substrings, not regex. Matches in comments, strings, and imports are included by design. Returns the number of source lines that contain any pattern as a substring.
- count_
duplicate_ literals - Count the maximum number of times any non-trivial literal appears within assertion nodes of the given function node.
- extract_
suppression_ from_ previous_ line - has_
any_ match