pub struct TraceMap { /* private fields */ }
Expand description

Stores all the program traces mapped to files and provides an interface to add, query and change traces.

Implementations

Create a new TraceMap

Returns true if there are no traces

Provides an interator to the underlying map of PathBufs to Vec

Merges the results of one tracemap into the current one. This adds records which are missing and adds the statistics gathered to existing records

This will collapse duplicate Traces into a single trace. Warning this will lose the addresses of the duplicate traces but increment the results should be called only if you don’t need those addresses from then on TODO possibly not the cleanest solution

Add a trace to the tracemap for the given file

Gets an immutable reference to a trace from an address. Returns None if there is no trace at that address

Gets a mutable reference to a trace at a given address Returns None if there is no trace at that address

Returns true if the location described by file and line number is present in the tracemap

Returns true if the file is among the traces

Gets all traces below a certain path

Gets all traces in folder, doesn’t go into other folders for that you want get_child_traces

Gets all traces

Give the total amount of coverable points in the code. This will vary based on the statistics available for line coverage it will be total lines whereas for condition or decision it will count the number of conditions available

From all the coverable data return the amount covered

Returns coverage percentage ranging from 0.0-1.0

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more