Skip to main content

is_test_function_node

Function is_test_function_node 

Source
pub fn is_test_function_node(
    node: &Node<'_>,
    source: &[u8],
    language: Language,
) -> bool
Expand description

Public wrapper around the per-language test-function predicate.

tldr specs --from-tests re-uses this from the generic spec extractor so the same definition of “test function” used to count tests is used to harvest assertions inside them.