LCOV - code coverage report
Current view: top level - lib/matrix_api_lite - values.dart (source / functions) Hit Total Coverage
Test: merged.info Lines: 3 3 100.0 %
Date: 2024-09-28 12:47:43 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 1.14