LCOV - code coverage report
Current view: top level - src/templates - serialized_extension_template.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 6 0.0 %
Date: 2021-10-15 15:56:51 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:enum_assist/src/enum_field.dart';
       2             : import 'package:enum_assist/src/templates/map_template.dart';
       3             : 
       4             : /// {@template enum_assist.description_template}
       5             : /// Returns the description from the enum field.
       6             : /// {@endtemplate}
       7             : class SerializedTemplate extends MapTemplate {
       8             :   /// {@macro enum_assist.description_template}
       9           0 :   SerializedTemplate(String enumName, Iterable<EnumField> fields)
      10           0 :       : super(
      11             :           enumName,
      12             :           fields,
      13           0 :           getValue: (field) =>
      14           0 :               '${field.belongsToEnum}Conv._${field.fieldName}Name',
      15             :           methodName: 'serialized',
      16           0 :           typeAsString: '$String',
      17             :           docComment: '''
      18             : /// Returns the serialized value of the enum field.''',
      19             :         );
      20             : 
      21           0 :   @override
      22             :   String? prepValueForGen(String? value) => value;
      23             : }

Generated by: LCOV version 1.15