LCOV - code coverage report
Current view: top level - src/templates - name_template.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 4 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.name_template}
       5             : /// Returns the description from the enum field.
       6             : /// {@endtemplate}
       7             : class NameTemplate extends MapTemplate {
       8             :   /// {@macro enum_assist.name_template}
       9           0 :   NameTemplate(String enumName, Iterable<EnumField> fields)
      10           0 :       : super(
      11             :           enumName,
      12             :           fields,
      13           0 :           getValue: (field) => field.getName,
      14             :           methodName: 'name',
      15           0 :           typeAsString: '$String',
      16             :           docComment: '''
      17             : /// Returns the name of the enum field
      18             : /// in a human readable format.''',
      19             :         );
      20             : }

Generated by: LCOV version 1.15