testing._collect_subtree_names
(internal) Expand one testset to its leaf names, containing failures: a testset whose generator throws or panics during expansion is represented by a sentinel leaf *under* its own path ("root::suite::(failed to expand)") so canonical-id filters select it like a real leaf, then `run_selected` runs it and surfaces the error.
Reference version
Signature
function testing._collect_subtree_names(
registry: testing.TestRegistry,
) -> string[] throws testing.InvalidTestName
(internal) Expand one testset to its leaf names, containing failures: a testset whose
generator throws or panics during expansion is represented by a sentinel leaf
under its own path ("root::suite::(failed to expand)") so canonical-id
filters select it like a real
leaf, then run_selected runs it and surfaces the error.
Source:<builtin>/testing/registry.bamlbytes 33140–33487