diff --git a/crates/bough-cli/src/main.rs b/crates/bough-cli/src/main.rs index fbebc871..104a552b 100644 --- a/crates/bough-cli/src/main.rs +++ b/crates/bough-cli/src/main.rs @@ -1,6 +1,8 @@ mod config; mod render; +use std::sync::{Arc, Mutex}; + use bough_core::{File, Session}; use bough_typed_hash::TypedHashable; use config::{Command, Show, parse}; @@ -299,71 +301,96 @@ fn main() { .render(&cli) ); - let workspace_id = workspace_ids.get(0).unwrap(); - let workspace = session - .bind_workspace(&workspace_id) - .expect("bind workspace"); - - if let Ok(outcome) = workspace.run_init(&cli.config, None) { - println!( - "{}", - render::InitWorkspace { - workspace_id: workspace_id.clone(), - outcome, - } - .render(&cli) - ); - } - - if let Ok(outcome) = workspace.run_reset(&cli.config, None) { - println!( - "{}", - render::ResetWorkspace { - workspace_id: workspace_id.clone(), - outcome, - } - .render(&cli) - ); - } - - let base = session.base().clone(); - for mutation in base.mutations() { - let mutation = mutation.unwrap(); - - let hash_str = mutation.hash().expect("hash").to_string(); - let mut workspace = session - .bind_workspace(&workspace_id) - .expect("bind workspace"); - workspace.write_mutant(&mutation).expect("apply mutation"); - let outcome = workspace - .run_test(&cli.config, None) - .expect("test mutation"); - workspace.revert_mutant().expect("revert mutation"); - let status = if outcome.exit_code() != 0 { - bough_core::Status::Caught - } else { - bough_core::Status::Missed - }; - - let status_str = if outcome.exit_code() != 0 { - "caught" - } else { - "missed" - }; - - session.set_state(&mutation, status).expect("set state"); - - println!( - "{}", - (render::TestMutation { - workspace_id: workspace_id.clone(), - mutation_hash: hash_str, - status: status_str, - duration: outcome.duration(), - }) - .render(&cli) - ); - } + let session = Arc::new(Mutex::new(session)); + + std::thread::scope(|scope| { + for workspace_id in workspace_ids { + let session = Arc::clone(&session); + let cli = cli.clone(); + + scope.spawn(move || { + let mut workspace = session + .lock() + .unwrap() + .bind_workspace(&workspace_id) + .expect("bind workspace"); + + if let Ok(outcome) = workspace.run_init(&cli.config, None) { + println!( + "{}", + render::InitWorkspace { + workspace_id: workspace_id.clone(), + outcome, + } + .render(&cli) + ); + } + + loop { + let hash_to_test = + session.lock().unwrap().get_next_mutation_needing_test(); + + if let Some(hash_to_test) = hash_to_test { + let mutation_state = session + .lock() + .unwrap() + .get_state() + .get(&hash_to_test) + .unwrap(); + + let mutation = mutation_state.mutation(); + + if let Ok(outcome) = workspace.run_reset(&cli.config, None) { + println!( + "{}", + render::ResetWorkspace { + workspace_id: workspace_id.clone(), + outcome, + } + .render(&cli) + ); + } + + workspace.write_mutant(&mutation).expect("apply mutation"); + let outcome = workspace + .run_test(&cli.config, None) + .expect("test mutation"); + workspace.revert_mutant().expect("revert mutation"); + let status = if outcome.exit_code() != 0 { + bough_core::Status::Caught + } else { + bough_core::Status::Missed + }; + + let status_str = if outcome.exit_code() != 0 { + "caught" + } else { + "missed" + }; + + session + .lock() + .unwrap() + .set_state(&mutation, status) + .expect("set state"); + + println!( + "{}", + (render::TestMutation { + workspace_id: workspace_id.clone(), + mutation_hash: format!("{}", hash_to_test), + status: status_str, + duration: outcome.duration(), + }) + .render(&cli) + ); + } else { + break; + } + } + }); + } + }); Box::new(Noop) } diff --git a/crates/bough-core/src/session.rs b/crates/bough-core/src/session.rs index b08e3127..fb6430f4 100644 --- a/crates/bough-core/src/session.rs +++ b/crates/bough-core/src/session.rs @@ -9,7 +9,7 @@ use chrono::Duration; use tracing::info; use crate::{ - LanguageId, + LanguageId, Status, base::Base, facet_disk_store::FacetDiskStore, mutation::{Mutation, MutationHash}, @@ -67,6 +67,7 @@ pub struct Session { base: Arc, workspaces: Vec, mutations_state: FacetDiskStore, + mutations_needing_test: Vec, } impl Session { @@ -99,11 +100,14 @@ impl Session { config.get_bough_state_dir().join("state"), ); + let mutations_needing_test = Self::derive_mutations_needing_testing(&mutations_state); + Ok(Self { config, base: Arc::new(base), workspaces: Vec::new(), mutations_state, + mutations_needing_test, }) } @@ -111,6 +115,28 @@ impl Session { &self.base } + fn derive_mutations_needing_testing( + mutations_state: &FacetDiskStore, + ) -> Vec { + mutations_state + .keys() + .filter(|key| { + if let Some(val) = mutations_state.get(key) { + if let Some(status) = val.status() { + if *status == Status::Caught { + return false; + } + } + }; + return true; + }) + .collect() + } + + pub fn get_next_mutation_needing_test(&mut self) -> Option { + self.mutations_needing_test.pop() + } + // bough[impl session.tend.state.add-missing] pub fn tend_add_missing_states(&mut self) -> Result, Error> { let mutations_in_base: HashSet = @@ -128,9 +154,35 @@ impl Session { } } + self.mutations_needing_test = Self::derive_mutations_needing_testing(&self.mutations_state); + Ok(added) } + // bough[impl session.tend.state.remove-stale] + pub fn tend_remove_stale_states(&mut self) -> Result, Error> { + let mutations_in_base: HashSet = + self.base.mutations().collect::>()?; + let hashes_in_base: HashSet = mutations_in_base + .iter() + .map(|m| m.hash().expect("hashing should not fail")) + .collect(); + + let stale_keys: Vec = self + .mutations_state + .keys() + .filter(|k| !hashes_in_base.contains(k)) + .collect(); + + for key in &stale_keys { + self.mutations_state.remove(key); + } + + self.mutations_needing_test = Self::derive_mutations_needing_testing(&self.mutations_state); + + Ok(stale_keys) + } + // bough[impl session.tend.workspaces] // bough[impl session.tend.workspaces.bind] // bough[impl session.tend.workspaces.bind.validate-unchanged.rm] @@ -183,28 +235,6 @@ impl Session { Ok(valid) } - // bough[impl session.tend.state.remove-stale] - pub fn tend_remove_stale_states(&mut self) -> Result, Error> { - let mutations_in_base: HashSet = - self.base.mutations().collect::>()?; - let hashes_in_base: HashSet = mutations_in_base - .iter() - .map(|m| m.hash().expect("hashing should not fail")) - .collect(); - - let stale_keys: Vec = self - .mutations_state - .keys() - .filter(|k| !hashes_in_base.contains(k)) - .collect(); - - for key in &stale_keys { - self.mutations_state.remove(key); - } - - Ok(stale_keys) - } - // bough[impl session.init.state.get] pub fn get_state(&self) -> &FacetDiskStore { &self.mutations_state @@ -229,7 +259,11 @@ impl Session { pub fn bind_workspace(&self, workspace_id: &WorkspaceId) -> Result { let workspaces_dir = self.config.get_bough_state_dir().join("workspaces"); - Ok(Workspace::bind(workspaces_dir, workspace_id, self.base.clone())?) + Ok(Workspace::bind( + workspaces_dir, + workspace_id, + self.base.clone(), + )?) } pub fn bind_dirty_workspace(&self, workspace_id: &WorkspaceId) -> Workspace { @@ -707,11 +741,13 @@ mod tests { assert!(initial_count > 0); std::fs::remove_file(dir.path().join("src/b.js")).unwrap(); - session.base = Arc::new(crate::base::Base::new( - dir.path().to_path_buf(), - crate::twig::TwigsIterBuilder::new().with_include_glob("src/**/*.js"), - ) - .unwrap()); + session.base = Arc::new( + crate::base::Base::new( + dir.path().to_path_buf(), + crate::twig::TwigsIterBuilder::new().with_include_glob("src/**/*.js"), + ) + .unwrap(), + ); Arc::get_mut(&mut session.base).unwrap().add_mutator( LanguageId::Javascript, crate::twig::TwigsIterBuilder::new().with_include_glob("src/**/*.js"), diff --git a/crates/bough-core/src/state.rs b/crates/bough-core/src/state.rs index 47fefb37..5ee22939 100644 --- a/crates/bough-core/src/state.rs +++ b/crates/bough-core/src/state.rs @@ -4,7 +4,7 @@ use tracing::trace; use crate::{mutation::Mutation, test_id::TestId}; -#[derive(Facet)] +#[derive(Facet, PartialEq)] #[repr(u8)] pub enum Status { Caught, diff --git a/crates/bough-core/src/test_id.rs b/crates/bough-core/src/test_id.rs index c6ed4902..9889b622 100644 --- a/crates/bough-core/src/test_id.rs +++ b/crates/bough-core/src/test_id.rs @@ -1,3 +1,4 @@ use facet::Facet; -#[derive(Facet)] + +#[derive(Facet, PartialEq)] pub struct TestId(String); diff --git a/examples/vitest-js/.bough/state/0fbf474642b5a82a29af3ddfe543bf2a34db4eaddc416ef083938513fe3d36c4.json b/examples/vitest-js/.bough/state/0fbf474642b5a82a29af3ddfe543bf2a34db4eaddc416ef083938513fe3d36c4.json index 2e89032c..421baa56 100644 --- a/examples/vitest-js/.bough/state/0fbf474642b5a82a29af3ddfe543bf2a34db4eaddc416ef083938513fe3d36c4.json +++ b/examples/vitest-js/.bough/state/0fbf474642b5a82a29af3ddfe543bf2a34db4eaddc416ef083938513fe3d36c4.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":6,"col":6,"byte":212},"end":{"line":6,"col":15,"byte":221}}},"subst":"false"},"outcome":{"status":"Caught","at":"2026-03-09T09:27:18Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":6,"col":6,"byte":212},"end":{"line":6,"col":15,"byte":221}}},"subst":"false"},"outcome":{"status":"Caught","at":"2026-03-09T14:57:28Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/211c2ec6db2d2a8e2d4edc4f249659d718961800b97a8a57fdfb2ef7adc60736.json b/examples/vitest-js/.bough/state/211c2ec6db2d2a8e2d4edc4f249659d718961800b97a8a57fdfb2ef7adc60736.json index dbeca7b0..3357c667 100644 --- a/examples/vitest-js/.bough/state/211c2ec6db2d2a8e2d4edc4f249659d718961800b97a8a57fdfb2ef7adc60736.json +++ b/examples/vitest-js/.bough/state/211c2ec6db2d2a8e2d4edc4f249659d718961800b97a8a57fdfb2ef7adc60736.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":5,"col":6,"byte":171},"end":{"line":5,"col":15,"byte":180}}},"subst":"true"},"outcome":{"status":"Caught","at":"2026-03-09T09:27:14Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":5,"col":6,"byte":171},"end":{"line":5,"col":15,"byte":180}}},"subst":"true"},"outcome":{"status":"Caught","at":"2026-03-09T14:57:35Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/33c1f0aa9840f5dcba4d4e58beedc6a936544eaaac3482365f41c1edfd8854f9.json b/examples/vitest-js/.bough/state/33c1f0aa9840f5dcba4d4e58beedc6a936544eaaac3482365f41c1edfd8854f9.json index 845e2163..56a0193e 100644 --- a/examples/vitest-js/.bough/state/33c1f0aa9840f5dcba4d4e58beedc6a936544eaaac3482365f41c1edfd8854f9.json +++ b/examples/vitest-js/.bough/state/33c1f0aa9840f5dcba4d4e58beedc6a936544eaaac3482365f41c1edfd8854f9.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":3,"col":6,"byte":70},"end":{"line":3,"col":15,"byte":79}}},"subst":"true"},"outcome":{"status":"Caught","at":"2026-03-09T09:27:10Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":3,"col":6,"byte":70},"end":{"line":3,"col":15,"byte":79}}},"subst":"true"},"outcome":{"status":"Caught","at":"2026-03-09T14:57:32Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/379aa4faf8e71684bb42140a159c01324ae5352a85ba294afe2af125b041ccba.json b/examples/vitest-js/.bough/state/379aa4faf8e71684bb42140a159c01324ae5352a85ba294afe2af125b041ccba.json index 2a6b0d1a..c002c4d7 100644 --- a/examples/vitest-js/.bough/state/379aa4faf8e71684bb42140a159c01324ae5352a85ba294afe2af125b041ccba.json +++ b/examples/vitest-js/.bough/state/379aa4faf8e71684bb42140a159c01324ae5352a85ba294afe2af125b041ccba.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"StatementBlock","span":{"start":{"line":0,"col":32,"byte":32},"end":{"line":10,"col":1,"byte":383}}},"subst":"{}"},"outcome":{"status":"Caught","at":"2026-03-09T09:27:09Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"StatementBlock","span":{"start":{"line":0,"col":32,"byte":32},"end":{"line":10,"col":1,"byte":383}}},"subst":"{}"},"outcome":{"status":"Caught","at":"2026-03-09T14:57:35Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/3ca90cb06ed4d084f1a77f49d30326972cf8aa471f8fbfa643f6fb1b73574f6d.json b/examples/vitest-js/.bough/state/3ca90cb06ed4d084f1a77f49d30326972cf8aa471f8fbfa643f6fb1b73574f6d.json index 2f2bbc81..ee80fd01 100644 --- a/examples/vitest-js/.bough/state/3ca90cb06ed4d084f1a77f49d30326972cf8aa471f8fbfa643f6fb1b73574f6d.json +++ b/examples/vitest-js/.bough/state/3ca90cb06ed4d084f1a77f49d30326972cf8aa471f8fbfa643f6fb1b73574f6d.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":8,"col":6,"byte":292},"end":{"line":8,"col":15,"byte":301}}},"subst":"true"},"outcome":{"status":"Missed","at":"2026-03-09T09:27:21Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":8,"col":6,"byte":292},"end":{"line":8,"col":15,"byte":301}}},"subst":"true"},"outcome":{"status":"Missed","at":"2026-03-09T14:57:32Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/422fe9cb1b0db9ac390cfd6ed55f41f3bb1c19119daacaa63e7fca412819431a.json b/examples/vitest-js/.bough/state/422fe9cb1b0db9ac390cfd6ed55f41f3bb1c19119daacaa63e7fca412819431a.json index 058b9f66..cf120ada 100644 --- a/examples/vitest-js/.bough/state/422fe9cb1b0db9ac390cfd6ed55f41f3bb1c19119daacaa63e7fca412819431a.json +++ b/examples/vitest-js/.bough/state/422fe9cb1b0db9ac390cfd6ed55f41f3bb1c19119daacaa63e7fca412819431a.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":4,"col":6,"byte":131},"end":{"line":4,"col":15,"byte":140}}},"subst":"true"},"outcome":{"status":"Caught","at":"2026-03-09T09:27:12Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":4,"col":6,"byte":131},"end":{"line":4,"col":15,"byte":140}}},"subst":"true"},"outcome":{"status":"Caught","at":"2026-03-09T14:57:33Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/64b0246270c270b19f10d75add91ac08d7833048092342517272b871750bcee8.json b/examples/vitest-js/.bough/state/64b0246270c270b19f10d75add91ac08d7833048092342517272b871750bcee8.json index 7ebe99a9..8ea6a2bc 100644 --- a/examples/vitest-js/.bough/state/64b0246270c270b19f10d75add91ac08d7833048092342517272b871750bcee8.json +++ b/examples/vitest-js/.bough/state/64b0246270c270b19f10d75add91ac08d7833048092342517272b871750bcee8.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":3,"col":6,"byte":70},"end":{"line":3,"col":15,"byte":79}}},"subst":"false"},"outcome":{"status":"Missed","at":"2026-03-09T09:27:11Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":3,"col":6,"byte":70},"end":{"line":3,"col":15,"byte":79}}},"subst":"false"},"outcome":{"status":"Missed","at":"2026-03-09T14:57:31Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/6c57ef511b5d18162597b0a698d502a30ede4eea279177ea466b5b13b5a0bbca.json b/examples/vitest-js/.bough/state/6c57ef511b5d18162597b0a698d502a30ede4eea279177ea466b5b13b5a0bbca.json index 63cfeb2d..051213ec 100644 --- a/examples/vitest-js/.bough/state/6c57ef511b5d18162597b0a698d502a30ede4eea279177ea466b5b13b5a0bbca.json +++ b/examples/vitest-js/.bough/state/6c57ef511b5d18162597b0a698d502a30ede4eea279177ea466b5b13b5a0bbca.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":6,"col":6,"byte":212},"end":{"line":6,"col":15,"byte":221}}},"subst":"true"},"outcome":{"status":"Missed","at":"2026-03-09T09:27:16Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":6,"col":6,"byte":212},"end":{"line":6,"col":15,"byte":221}}},"subst":"true"},"outcome":{"status":"Missed","at":"2026-03-09T14:57:31Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/6f02b3e5b1c08b66a7b86b4140781f94486a3aa73c96e186a06b83e9f47ad176.json b/examples/vitest-js/.bough/state/6f02b3e5b1c08b66a7b86b4140781f94486a3aa73c96e186a06b83e9f47ad176.json index 492932a2..34fc9a12 100644 --- a/examples/vitest-js/.bough/state/6f02b3e5b1c08b66a7b86b4140781f94486a3aa73c96e186a06b83e9f47ad176.json +++ b/examples/vitest-js/.bough/state/6f02b3e5b1c08b66a7b86b4140781f94486a3aa73c96e186a06b83e9f47ad176.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":9,"col":6,"byte":337},"end":{"line":9,"col":15,"byte":346}}},"subst":"true"},"outcome":{"status":"Missed","at":"2026-03-09T09:27:23Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":9,"col":6,"byte":337},"end":{"line":9,"col":15,"byte":346}}},"subst":"true"},"outcome":{"status":"Missed","at":"2026-03-09T14:57:35Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/7c64e51a5ff9b4d8ec6fafc505928545d3dcf03e17e13b97c125d321ee634639.json b/examples/vitest-js/.bough/state/7c64e51a5ff9b4d8ec6fafc505928545d3dcf03e17e13b97c125d321ee634639.json index 35f88798..310f7aec 100644 --- a/examples/vitest-js/.bough/state/7c64e51a5ff9b4d8ec6fafc505928545d3dcf03e17e13b97c125d321ee634639.json +++ b/examples/vitest-js/.bough/state/7c64e51a5ff9b4d8ec6fafc505928545d3dcf03e17e13b97c125d321ee634639.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":9,"col":6,"byte":337},"end":{"line":9,"col":15,"byte":346}}},"subst":"false"},"outcome":{"status":"Missed","at":"2026-03-09T09:27:24Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":9,"col":6,"byte":337},"end":{"line":9,"col":15,"byte":346}}},"subst":"false"},"outcome":{"status":"Missed","at":"2026-03-09T14:57:27Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/9fa28eb1fc71140c2430559ecdd49da08c89ecdce41b3eb862272bfa8a525302.json b/examples/vitest-js/.bough/state/9fa28eb1fc71140c2430559ecdd49da08c89ecdce41b3eb862272bfa8a525302.json index fa89a27d..f5338c69 100644 --- a/examples/vitest-js/.bough/state/9fa28eb1fc71140c2430559ecdd49da08c89ecdce41b3eb862272bfa8a525302.json +++ b/examples/vitest-js/.bough/state/9fa28eb1fc71140c2430559ecdd49da08c89ecdce41b3eb862272bfa8a525302.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":7,"col":6,"byte":251},"end":{"line":7,"col":15,"byte":260}}},"subst":"false"},"outcome":{"status":"Missed","at":"2026-03-09T09:27:20Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":7,"col":6,"byte":251},"end":{"line":7,"col":15,"byte":260}}},"subst":"false"},"outcome":{"status":"Missed","at":"2026-03-09T14:57:28Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/a47ea50e25fed76da885a159e654153078355b1a143c70de45f7070848482ba2.json b/examples/vitest-js/.bough/state/a47ea50e25fed76da885a159e654153078355b1a143c70de45f7070848482ba2.json index cbd9e54d..45104661 100644 --- a/examples/vitest-js/.bough/state/a47ea50e25fed76da885a159e654153078355b1a143c70de45f7070848482ba2.json +++ b/examples/vitest-js/.bough/state/a47ea50e25fed76da885a159e654153078355b1a143c70de45f7070848482ba2.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":5,"col":6,"byte":171},"end":{"line":5,"col":15,"byte":180}}},"subst":"false"},"outcome":{"status":"Caught","at":"2026-03-09T09:27:15Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":5,"col":6,"byte":171},"end":{"line":5,"col":15,"byte":180}}},"subst":"false"},"outcome":{"status":"Caught","at":"2026-03-09T14:57:30Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/aaca6ca411de04db67d9647c0d2284cddd4c2894810bf5a2d09a1b3d3d975571.json b/examples/vitest-js/.bough/state/aaca6ca411de04db67d9647c0d2284cddd4c2894810bf5a2d09a1b3d3d975571.json index 83b1d0df..1cea32c1 100644 --- a/examples/vitest-js/.bough/state/aaca6ca411de04db67d9647c0d2284cddd4c2894810bf5a2d09a1b3d3d975571.json +++ b/examples/vitest-js/.bough/state/aaca6ca411de04db67d9647c0d2284cddd4c2894810bf5a2d09a1b3d3d975571.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"StatementBlock","span":{"start":{"line":12,"col":24,"byte":409},"end":{"line":18,"col":1,"byte":584}}},"subst":"{}"},"outcome":{"status":"Caught","at":"2026-03-09T09:27:27Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"StatementBlock","span":{"start":{"line":12,"col":24,"byte":409},"end":{"line":18,"col":1,"byte":584}}},"subst":"{}"},"outcome":{"status":"Caught","at":"2026-03-09T14:57:29Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/afb5cf8711c32f01604fa6a677125b6c8be21a91a487738336dd0a58ae135b73.json b/examples/vitest-js/.bough/state/afb5cf8711c32f01604fa6a677125b6c8be21a91a487738336dd0a58ae135b73.json index f24520ba..7f14056e 100644 --- a/examples/vitest-js/.bough/state/afb5cf8711c32f01604fa6a677125b6c8be21a91a487738336dd0a58ae135b73.json +++ b/examples/vitest-js/.bough/state/afb5cf8711c32f01604fa6a677125b6c8be21a91a487738336dd0a58ae135b73.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":12,"col":4,"byte":389},"end":{"line":12,"col":22,"byte":407}}},"subst":"false"},"outcome":{"status":"Caught","at":"2026-03-09T09:27:26Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":12,"col":4,"byte":389},"end":{"line":12,"col":22,"byte":407}}},"subst":"false"},"outcome":{"status":"Caught","at":"2026-03-09T14:57:28Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/b684809f21b34a6e8005e7920eea618fce1c9165edb50a5957de131151d61383.json b/examples/vitest-js/.bough/state/b684809f21b34a6e8005e7920eea618fce1c9165edb50a5957de131151d61383.json index 45762aa3..b1a35512 100644 --- a/examples/vitest-js/.bough/state/b684809f21b34a6e8005e7920eea618fce1c9165edb50a5957de131151d61383.json +++ b/examples/vitest-js/.bough/state/b684809f21b34a6e8005e7920eea618fce1c9165edb50a5957de131151d61383.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":12,"col":4,"byte":389},"end":{"line":12,"col":22,"byte":407}}},"subst":"true"},"outcome":{"status":"Caught","at":"2026-03-09T09:27:25Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":12,"col":4,"byte":389},"end":{"line":12,"col":22,"byte":407}}},"subst":"true"},"outcome":{"status":"Caught","at":"2026-03-09T14:57:34Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/c339c244113a6d49a0f651c7b665ea454980416dccce68d77971bd94ad48305f.json b/examples/vitest-js/.bough/state/c339c244113a6d49a0f651c7b665ea454980416dccce68d77971bd94ad48305f.json index fb28ff1c..5e7a9e7f 100644 --- a/examples/vitest-js/.bough/state/c339c244113a6d49a0f651c7b665ea454980416dccce68d77971bd94ad48305f.json +++ b/examples/vitest-js/.bough/state/c339c244113a6d49a0f651c7b665ea454980416dccce68d77971bd94ad48305f.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"StatementBlock","span":{"start":{"line":15,"col":49,"byte":508},"end":{"line":17,"col":3,"byte":580}}},"subst":"{}"},"outcome":{"status":"Missed","at":"2026-03-09T09:27:28Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"StatementBlock","span":{"start":{"line":15,"col":49,"byte":508},"end":{"line":17,"col":3,"byte":580}}},"subst":"{}"},"outcome":{"status":"Missed","at":"2026-03-09T14:57:29Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/cdc0a620e4fca97e54a9cdce96b97e5dce5dbfc2a0862600b2f46e169074a948.json b/examples/vitest-js/.bough/state/cdc0a620e4fca97e54a9cdce96b97e5dce5dbfc2a0862600b2f46e169074a948.json index 2c4ad358..dc6d86c1 100644 --- a/examples/vitest-js/.bough/state/cdc0a620e4fca97e54a9cdce96b97e5dce5dbfc2a0862600b2f46e169074a948.json +++ b/examples/vitest-js/.bough/state/cdc0a620e4fca97e54a9cdce96b97e5dce5dbfc2a0862600b2f46e169074a948.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":7,"col":6,"byte":251},"end":{"line":7,"col":15,"byte":260}}},"subst":"true"},"outcome":{"status":"Missed","at":"2026-03-09T09:27:19Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":7,"col":6,"byte":251},"end":{"line":7,"col":15,"byte":260}}},"subst":"true"},"outcome":{"status":"Missed","at":"2026-03-09T14:57:33Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/daf4d9a3a55a04e36a3d318514167ca1e620afb4ee5b64aecb89be948820ba0e.json b/examples/vitest-js/.bough/state/daf4d9a3a55a04e36a3d318514167ca1e620afb4ee5b64aecb89be948820ba0e.json index 0c79449c..21a6f859 100644 --- a/examples/vitest-js/.bough/state/daf4d9a3a55a04e36a3d318514167ca1e620afb4ee5b64aecb89be948820ba0e.json +++ b/examples/vitest-js/.bough/state/daf4d9a3a55a04e36a3d318514167ca1e620afb4ee5b64aecb89be948820ba0e.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":8,"col":6,"byte":292},"end":{"line":8,"col":15,"byte":301}}},"subst":"false"},"outcome":{"status":"Missed","at":"2026-03-09T09:27:22Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":8,"col":6,"byte":292},"end":{"line":8,"col":15,"byte":301}}},"subst":"false"},"outcome":{"status":"Missed","at":"2026-03-09T14:57:30Z"}} \ No newline at end of file diff --git a/examples/vitest-js/.bough/state/e826418c22219183d58874f05569c54ae79a6c0de4d124119ba207874b7fc702.json b/examples/vitest-js/.bough/state/e826418c22219183d58874f05569c54ae79a6c0de4d124119ba207874b7fc702.json index f79680b5..0f3fc8ed 100644 --- a/examples/vitest-js/.bough/state/e826418c22219183d58874f05569c54ae79a6c0de4d124119ba207874b7fc702.json +++ b/examples/vitest-js/.bough/state/e826418c22219183d58874f05569c54ae79a6c0de4d124119ba207874b7fc702.json @@ -1 +1 @@ -{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":4,"col":6,"byte":131},"end":{"line":4,"col":15,"byte":140}}},"subst":"false"},"outcome":{"status":"Caught","at":"2026-03-09T09:27:13Z"}} \ No newline at end of file +{"mutation":{"mutant":{"lang":"js","twig":["src/index.js"],"kind":"Condition","span":{"start":{"line":4,"col":6,"byte":131},"end":{"line":4,"col":15,"byte":140}}},"subst":"false"},"outcome":{"status":"Caught","at":"2026-03-09T14:57:34Z"}} \ No newline at end of file