Struct lcov_parser::parser::LCOVParser
[−]
[src]
pub struct LCOVParser { // some fields omitted }
Examples
use lcov_parser:: { LCOVParser, LCOVRecord }; let res = LCOVParser::new("TN:testname\nSF:/path/to/source.rs\n").parse().unwrap(); assert_eq!(res[0], LCOVRecord::TestName("testname".to_string())); assert_eq!(res[1], LCOVRecord::SourceFile("/path/to/source.rs".to_string()));
Methods
impl LCOVParser
[src]
fn new(report: &str) -> Self
fn parse(&self) -> ParseResult<Vec<LCOVRecord>>
Trait Implementations
impl<P: AsRef<Path>> From<P> for LCOVParser
[src]
fn from(path: P) -> Self
Performs the conversion.