LCOV - code coverage report
Current view: top level - lib/matrix_api_lite - values.dart (source / functions) Coverage Total Hit
Test: merged.info Lines: 100.0 % 3 3
Test Date: 2025-01-14 13:39:53 Functions: - 0 0

            Line data    Source code
       1              : // OpenAPI only supports real enums (modeled as enum in generated/model.dart).
       2              : 
       3              : // In this file, possible values are defined manually,
       4              : // for cases where other values are allowed too.
       5              : 
       6              : class PushRuleAction {
       7              :   static final notify = 'notify';
       8              :   static final dontNotify = 'dont_notify';
       9              :   static final coalesce = 'coalesce';
      10              :   static final setTweak = 'set_tweak';
      11              : }
      12              : 
      13              : class TagType {
      14              :   static final favourite = 'm.favourite';
      15              :   static final lowPriority = 'm.lowpriority';
      16              :   static final serverNotice = 'm.server_notice';
      17              : 
      18           33 :   static bool isValid(String tag) =>
      19           33 :       !tag.startsWith('m.') ||
      20            4 :       [favourite, lowPriority, serverNotice].contains(tag);
      21              : }
        

Generated by: LCOV version 2.0-1