NetLensCallMockMapper class

Builds mocks from calls caught by NetLens.

Constructors

NetLensCallMockMapper({DateTime clock()?})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

map(NetLensHttpCall call) → NetLensMock?
Returns the mock which answers the request of call with its response, or null when canMap is false. The mock has no id until it is saved by NetLensMockRecorder.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

canMap(NetLensHttpCall call) → bool
Returns true when call finished with a response which can be replayed. Calls which failed without a response, for example offline, can't.