Struct lcov_parser::LCOVParser
[−]
[src]
pub struct LCOVParser<T> { /* fields omitted */ }
Parse the record one line at a time
Examples
use std::fs:: { File }; use lcov_parser:: { LCOVRecord, LCOVParser }; let s = File::open("fixture/report.lcov").unwrap(); let mut parser = LCOVParser::new(s); let mut records = vec![]; loop { let result = parser.next().unwrap(); match result { Some(r) => { records.push(r) }, None => { break; } } } assert_eq!(records[0], LCOVRecord::TestName(Some("test".to_string())));Run