Test constructor
Test({
- required int id,
- required String name,
- @JsonKey(name: 'suiteID') required int suiteId,
- @JsonKey(name: 'groupIDs') required List<
int> groupIds, - int? line,
- int? column,
- String? url,
- @JsonKey(name: 'root_line') int? rootLine,
- @JsonKey(name: 'root_column') int? rootColumn,
- @JsonKey(name: 'root_url') String? rootUrl,
Factory constructor to create a Test
Implementation
factory Test({
/// An opaque ID for this test.
required int id,
/// The name of this test, including prefixes from any containing groups.
required String name,
/// The ID of the suite containing this test.
@JsonKey(name: 'suiteID') required int suiteId,
/// The IDs of groups containing this test, in order from outermost to innermost.
@JsonKey(name: 'groupIDs') required List<int> groupIds,
/// The (1-based) line on which this test was defined, or `null`.
int? line,
/// The (1-based) column on which this test was defined, or `null`.
int? column,
/// The URL for the file in which this test was defined, or `null`.
String? url,
/// The (1-based) line in the original test suite from which this test originated.
///
/// Will only be present if `rootUrl` is different from `url`.
@JsonKey(name: 'root_line') int? rootLine,
/// The (1-based) line on in the original test suite from which this test originated.
///
/// Will only be present if `rootUrl` is different from `url`.
@JsonKey(name: 'root_column') int? rootColumn,
/// The URL for the original test suite in which this test was defined.
///
/// Will only be present if different from `url`.
@JsonKey(name: 'root_url') String? rootUrl,
}) = _Test;