SourceFile class

Represents a source code file and its coverage data for a single job.

Annotations

Constructors

SourceFile(String name, { String sourceDigest, { Iterable<int> branches, Iterable<int> coverage, String source })
Creates a new source file.
SourceFile.fromJson(Map<String, dynamic> map)
Creates a new source file from the specified map in JSON format.
factory

Properties

branches → List<int>
The branch data for this file's job.
@JsonKey(includeIfNull: false), final
coverage → List<int>
The coverage data for this file's job.
@JsonKey(defaultValue: const []), final
name → String
The file path of this source file.
@JsonKey(defaultValue: ''), final
source → String
The contents of this source file.
@JsonKey(includeIfNull: false), final
sourceDigest → String
The MD5 digest of the full source code of this file.
@JsonKey(defaultValue: '', name: 'source_digest'), final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, dynamic>
Converts this object to a Map in JSON format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited