LCOV - code coverage report
Current view: top level - lib/src/utils - try_get_push_rule.dart (source / functions) Hit Total Coverage
Test: merged.info Lines: 2 4 50.0 %
Date: 2024-09-04 20:26:16 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:matrix/matrix.dart';
       2             : 
       3             : extension TryGetPushRule on PushRuleSet {
       4          32 :   static PushRuleSet tryFromJson(Map<String, dynamic> json) {
       5             :     try {
       6          32 :       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 1.14