APICallRecord class

Diagnostic record for one API invocation observed during a test.

Constructors

APICallRecord({required String name, required YamlMap apiDefinition, required DateTime timestamp, int? stepIndex, bool? mocked, int? statusCode, String? error, Object? responseBody, String? type, String? resolvedUrl, Map<String, dynamic>? resolvedHeaders, Map<String, dynamic>? resolvedParameters, dynamic resolvedBody})

Properties

apiDefinition → YamlMap
final
completed ↔ bool
getter/setter pair
completedAt ↔ DateTime?
getter/setter pair
completionStepIndex ↔ int?
getter/setter pair
error ↔ String?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hasRequestStarted → bool
no setter
isCompleted → bool
Whether the invocation has produced either a response or an error.
no setter
mocked ↔ bool?
getter/setter pair
name → String
final
providerDurationMs ↔ int?
getter/setter pair
resolvedBody ↔ dynamic
getter/setter pair
resolvedHeaders ↔ Map<String, dynamic>?
getter/setter pair
resolvedParameters ↔ Map<String, dynamic>?
getter/setter pair
resolvedUrl ↔ String?
getter/setter pair
responseBody ↔ Object?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode ↔ int?
getter/setter pair
stepIndex → int?
Top-level step index (0-based) active when the call started, if any.
final
timestamp → DateTime
final
type ↔ String?
getter/setter pair
wasPendingAtStepEnd → bool
no setter

Methods

markCompleted() → void
markRequestStarted() → void
Marks when the runner dispatches the request to its provider.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observeStepEnd(int stepIndex) → void
toString() → String
A string representation of this object.
inherited

Operators

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