pub fn parse_report(input: &str) -> ParseResult<Vec<LCOVRecord>>
Expand description
Parse the LCOV report
ยงExamples
use lcov_parser:: { LCOVRecord, parse_report };
let result = parse_report("TN:test_name\nSF:/path/to/source.rs\n");
let records = result.unwrap();
assert_eq!(records.get(0).unwrap(), &LCOVRecord::TestName(Some("test_name".to_string())));
assert_eq!(records.get(1).unwrap(), &LCOVRecord::SourceFile("/path/to/source.rs".to_string()));