Skip to main content

fn_is_test

Function fn_is_test 

Source
pub fn fn_is_test(node: &AIRNode) -> bool
Expand description

Returns true if node is a function declaration carrying the @test annotation. Matches the discovery rule used by bock test (bock-cli::test::discover_test_functions): an @test-annotated FnDecl.