Skip to main content

ruby_contains_tests

Function ruby_contains_tests 

Source
pub fn ruby_contains_tests(root: Node<'_>, source: &str) -> bool
Expand description

Heuristic detection of Ruby test files across the common frameworks: RSpec, Minitest, and Test::Unit. Recognition is entirely parser-backed so assertion-like text in comments and strings cannot classify a file as a test.