Something went wrong. Try again.
A polyglot incremental mutation tester
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126#![allow(dead_code)]
mod base;mod facet_disk_store;mod file;mod language;pub mod mutant;mod mutation;mod mutation_score;mod phase;mod session;mod state;mod test_id;mod twig;mod uncovered;mod workspace;
#[derive( Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord, facet::Facet, bough_typed_hash::HashInto,)]#[facet(rename_all = "lowercase")]#[repr(u8)]pub enum LanguageId { #[facet(rename = "js")] Javascript, #[facet(rename = "ts")] Typescript, #[facet(rename = "py")] Python, #[facet(rename = "c")] C, #[facet(rename = "go")] Go, #[facet(rename = "java")] Java, #[facet(rename = "cs")] CSharp, #[facet(rename = "rs")] Rust,}
impl LanguageId { pub const ALL: &[LanguageId] = &[ LanguageId::Javascript, LanguageId::Typescript, LanguageId::Python, LanguageId::C, LanguageId::Go, LanguageId::Java, LanguageId::CSharp, LanguageId::Rust, ];
pub fn substitutions(&self, kind: &MutantKind) -> Vec<String> { language::driver_for_lang(*self).substitutions(kind) }
pub fn slug(&self) -> &'static str { match self { LanguageId::Javascript => "js", LanguageId::Typescript => "ts", LanguageId::Python => "py", LanguageId::C => "c", LanguageId::Go => "go", LanguageId::Java => "java", LanguageId::CSharp => "cs", LanguageId::Rust => "rs", } }
pub fn display_name(&self) -> &'static str { match self { LanguageId::Javascript => "JavaScript", LanguageId::Typescript => "TypeScript", LanguageId::Python => "Python", LanguageId::C => "C", LanguageId::Go => "Go", LanguageId::Java => "Java", LanguageId::CSharp => "C#", LanguageId::Rust => "Rust", } }
pub fn corpus_dir_name(&self) -> &'static str { match self { LanguageId::Javascript => "javascript", LanguageId::Typescript => "typescript", LanguageId::Python => "python", LanguageId::C => "c", LanguageId::Go => "go", LanguageId::Java => "java", LanguageId::CSharp => "c-sharp", LanguageId::Rust => "rust", } }
pub fn file_extension(&self) -> &'static str { self.slug() }}
pub use base::Base;pub use file::File;pub use file::Twig;pub use mutant::{Mutant, MutantKind, Point, SourceMutant, Span, find_mutants_in_source};pub use mutation::Mutation;pub use mutation::MutationHash;pub use mutation::MutationIter;pub use mutation_score::Factor;pub use phase::Error as PhaseError;pub use phase::PhaseOutcome;pub use session::Config;pub use session::Session;pub use state::{State, Status};pub use twig::TwigsIterBuilder;pub use workspace::{Error as WorkspaceError, Workspace, WorkspaceId};