Skip to main content

extract_java_tests

Function extract_java_tests 

Source
pub fn extract_java_tests(
    path: &str,
    source: &str,
) -> Result<Vec<ExtractedTest>, ExtractError>
Expand description

Extract Java (JUnit) tests: methods annotated with one of [JVM_TEST_ANNOTATIONS] directly inside class / record / interface / enum bodies. Markers come from the // / /* */ comment block immediately preceding the method; content starts at the first non-annotation token.