Struct cov::graph::Graph[][src]

pub struct Graph { /* fields omitted */ }

The combined control-flow graph.

Methods

impl Graph
[src]

Creates a new graph.

Merges a parsed GCNO/GCDA into the graph.

Errors

  • Returns VersionMismatch if a file has a different version than the previous ones merged.
  • Returns DuplicatedFunction if the same function is merged twice.
  • Returns MissingFunction if a function referred in a GCDA does not exist in the graph.
  • Returns CountsMismatch if the number of profiled arcs in a GCDA does not match the corresponding GCNO.

Analyzes the graph.

This should be called after all GCNO/GCDAs are merged and before a report is generated.

This method mainly converts the raw arc counts (branch coverage) to block counts (line coverage). If this is not called, the report will be empty.

Obtains a coverage report from the graph.

impl Graph
[src]

Writes out the graph as Graphvis *.dot format.

This is mainly intended for debugging.

Only functions with name matching the input function_name symbol will be printed. If the function_name is UNKNOWN_SYMBOL, however, all nodes will be printed.

Trait Implementations

impl Default for Graph
[src]

Returns the "default value" for a type. Read more

impl Debug for Graph
[src]

Formats the value using the given formatter. Read more

impl Clone for Graph
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Graph

impl Sync for Graph