LCOV - code coverage report
Current view: top level - models/android/extensions - date_time.dart Coverage Total Hit
Test: lcov_cleaned.info Lines: 0.0 % 5 0
Test Date: 2025-06-20 10:50:47 Functions: - 0 0

            Line data    Source code
       1              : /// Extension for DateTime string parsing.
       2              : extension DateTimeString on DateTime {
       3              :   /// Tries to parse a date string in YYYYMMDD format.
       4            0 :   static DateTime? tryParse(String value) {
       5            0 :     final year = int.tryParse(value.substring(0, 4));
       6            0 :     final month = int.tryParse(value.substring(4, 6));
       7            0 :     final day = int.tryParse(value.substring(6, 8));
       8              :     if (year != null && month != null && day != null) {
       9            0 :       return DateTime(year, month, day);
      10              :     }
      11              :     return null;
      12              :   }
      13              : }
        

Generated by: LCOV version 2.3.1-1