diff --git a/crates/bough-core/MUTANTSITER_SPEC.md b/crates/bough-core/MUTANTSITER_SPEC.md index cf074d27..3a939d0b 100644 --- a/crates/bough-core/MUTANTSITER_SPEC.md +++ b/crates/bough-core/MUTANTSITER_SPEC.md @@ -40,13 +40,13 @@ core[mutant.twig-iter.skip.kind] TwigMutantsIter::with_skip_kind(self, kind: MutantKind) -> Self skips all mutants of the specified kind core[mutant.twig-iter.skip.kind.multiple] -withskip_kind can be called multiple times; a mutant is skipped if its kind matches ANY of the configured skip kinds +with_skip_kind can be called multiple times; a mutant is skipped if its kind matches ANY of the configured skip kinds core[mutant.twig-iter.skip.query] TwigMutantsIter::with_skip_query(self, query: &str) -> Self skips all mutants whose tree-sitter node matches the provided S-expression query core[mutant.twig-iter.skip.query.multiple] -withskip_query can be called multiple times; a mutant is skipped if its node matches ANY of the configured skip queries +with_skip_query can be called multiple times; a mutant is skipped if its node matches ANY of the configured skip queries diff --git a/crates/bough-core/src/language/javascript.rs b/crates/bough-core/src/language/javascript.rs index 8df144ac..45e62693 100644 --- a/crates/bough-core/src/language/javascript.rs +++ b/crates/bough-core/src/language/javascript.rs @@ -3,10 +3,10 @@ use crate::mutant::{BinaryOpMutationKind, MutantKind, Span, span_from_node}; pub(crate) struct JavascriptDriver; -// core[impl mutant.iter.find.js.statement] -// core[impl mutant.iter.find.js.condition.if] -// core[impl mutant.iter.find.js.condition.while] -// core[impl mutant.iter.find.js.condition.for] +// core[impl mutant.twig-iter.find.js.statement] +// core[impl mutant.twig-iter.find.js.condition.if] +// core[impl mutant.twig-iter.find.js.condition.while] +// core[impl mutant.twig-iter.find.js.condition.for] impl LanguageDriver for JavascriptDriver { fn ts_language(&self) -> tree_sitter::Language { tree_sitter_javascript::LANGUAGE.into() @@ -23,8 +23,8 @@ impl LanguageDriver for JavascriptDriver { let condition = node.child_by_field_name("condition")?; Some((MutantKind::Condition, span_from_node(&condition))) } - // core[impl mutant.iter.find.js.binary.add] - // core[impl mutant.iter.find.js.binary.sub] + // core[impl mutant.twig-iter.find.js.binary.add] + // core[impl mutant.twig-iter.find.js.binary.sub] "binary_expression" => { let op_node = node.child_by_field_name("operator")?; let op_text = op_node.utf8_text(file_content).ok()?;