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(Some("testname".to_string()))); assert_eq!(res[1], LCOVRecord::SourceFile("/path/to/source.rs".to_string()));