From c3d0856fe2f0f8bbc5d7226a515ddd56894d8b98 Mon Sep 17 00:00:00 2001 From: Freddie Ridell Date: Thu, 5 Mar 2026 23:05:17 +0000 Subject: [PATCH] =?UTF-8?q?fix=20tracey=20tags:=20mutant.iter=20=E2=86=92?= =?UTF-8?q?=20mutant.twig-iter=20in=20javascript.rs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/bough-core/MUTANTSITER_SPEC.md | 4 ++-- crates/bough-core/src/language/javascript.rs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) 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()?; -- knotmirror 0.0.1