testing._pattern_may_match_descendant
(internal) Whether an include selector could match at least one leaf below `prefix`. A plain substring can always occur in a future leaf name, so it expands conservatively. For an explicit glob, the literal portion before the first `*` must be compatible with the canonical descendant prefix.
Reference version
Signature
function testing._pattern_may_match_descendant(pattern: string, prefix: string) -> bool
(internal) Whether an include selector could match at least one leaf below prefix.
A plain substring can always occur in a future leaf name, so it expands
conservatively. For an explicit glob, the literal portion before the first
* must be compatible with the canonical descendant prefix.
Source:<builtin>/testing/registry.bamlbytes 29877–30248