Enum lcov_parser::LCOVRecord [] [src]

pub enum LCOVRecord {
    TestName(Option<String>),
    SourceFile(String),
    Data(LineData),
    FunctionName(FunctionName),
    FunctionData(FunctionData),
    FunctionsFound(u32),
    FunctionsHit(u32),
    LinesHit(u32),
    LinesFound(u32),
    BranchData(BranchData),
    BranchesFound(u32),
    BranchesHit(u32),
    EndOfRecord,
}

Variants

Trait Implementations

impl Debug for LCOVRecord
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for LCOVRecord
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Clone for LCOVRecord
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> From<&'a str> for LCOVRecord
[src]

Parse the record from &str.

Examples

use lcov_parser:: { LCOVRecord };

let actual = LCOVRecord::from("TN:product_test\n");
let expected = LCOVRecord::TestName(Some("product_test".to_string()));

assert_eq!(actual, expected);

[src]

Performs the conversion.

impl From<LineData> for LCOVRecord
[src]

[src]

Performs the conversion.

impl From<FunctionName> for LCOVRecord
[src]

[src]

Performs the conversion.

impl From<FunctionData> for LCOVRecord
[src]

[src]

Performs the conversion.

impl From<BranchData> for LCOVRecord
[src]

[src]

Performs the conversion.