approved property

  1. @override
String get approved
override

A getter named approved that returns the string 'file_name.test_name.approved.txt'.

Implementation

@override
String get approved {
  if (options != null) {
    return options!.approved;
  }

  if (description != null) {
    return addTestName
        ? '$filePath.$currentTestName.$_updatedDescription.$approvedExtension'
        : '$filePath.$_updatedDescription.$approvedExtension';
  }
  return addTestName
      ? '$filePath.$currentTestName.$approvedExtension'
      : '$filePath.$approvedExtension';
}