testRecording method
- String description,
- RecordingTesterCallback body, {
- bool? skip,
- Object? tags = defaultRecorderTagObject,
Implementation
@isTest
void testRecording(
String description,
RecordingTesterCallback<dynamic> body, {
bool? skip,
Object? tags = defaultRecorderTagObject,
}) {
test(
description,
() {
assert(() {
if (isUpdatingRecordings) {
_debugLog('Updating Http recordings for test: $description');
}
return true;
}());
return run(body);
},
skip: skip,
tags: tags == defaultRecorderTagObject ? HttpRecorder.tags : tags,
);
}