testRecording method

  1. @isTest
void testRecording(
  1. String description,
  2. RecordingTesterCallback body, {
  3. bool? skip,
  4. 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,
  );
}