LCOV - code coverage report
Current view: top level - lib/src/utils - try_get_push_rule.dart (source / functions) Coverage Total Hit
Test: merged.info Lines: 50.0 % 4 2
Test Date: 2025-01-14 13:39:53 Functions: - 0 0

            Line data    Source code
       1              : import 'package:matrix/matrix.dart';
       2              : 
       3              : extension TryGetPushRule on PushRuleSet {
       4           33 :   static PushRuleSet tryFromJson(Map<String, dynamic> json) {
       5              :     try {
       6           33 :       return PushRuleSet.fromJson(json);
       7              :     } catch (e, s) {
       8            0 :       Logs().v('Malformed PushRuleSet', e, s);
       9              :     }
      10            0 :     return PushRuleSet.fromJson({});
      11              :   }
      12              : }
        

Generated by: LCOV version 2.0-1