pub struct CoverageAnalyzer<T: Tokenizer> { /* private fields */ }Expand description
Coverage analyzer implementation
Implementations§
Source§impl<T: Tokenizer> CoverageAnalyzer<T>
impl<T: Tokenizer> CoverageAnalyzer<T>
Sourcepub fn new(tokenizer: T, config: CoverageConfig) -> Self
pub fn new(tokenizer: T, config: CoverageConfig) -> Self
Create a new coverage analyzer
Sourcepub fn from_tokenizer(tokenizer: T) -> Self
pub fn from_tokenizer(tokenizer: T) -> Self
Create with default configuration
Sourcepub fn analyze_input(&mut self, text: &str) -> Result<()>
pub fn analyze_input(&mut self, text: &str) -> Result<()>
Analyze a single input text
Sourcepub fn analyze_batch(&mut self, texts: &[String]) -> Result<()>
pub fn analyze_batch(&mut self, texts: &[String]) -> Result<()>
Analyze a batch of input texts
Sourcepub fn generate_report(&self) -> Result<CoverageReport>
pub fn generate_report(&self) -> Result<CoverageReport>
Generate comprehensive coverage report
Auto Trait Implementations§
impl<T> Freeze for CoverageAnalyzer<T>where
T: Freeze,
impl<T> RefUnwindSafe for CoverageAnalyzer<T>where
T: RefUnwindSafe,
impl<T> Send for CoverageAnalyzer<T>
impl<T> Sync for CoverageAnalyzer<T>
impl<T> Unpin for CoverageAnalyzer<T>where
T: Unpin,
impl<T> UnsafeUnpin for CoverageAnalyzer<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CoverageAnalyzer<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more