LCOV - code coverage report
Current view: top level - lib - config.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 4 0.0 %
Date: 2024-08-19 21:58:30 Functions: 0 0 -

          Line data    Source code
       1             : const dev_version = "development";
       2             : 
       3             : class EnvironmentConfig {
       4             :   static const BUILD_VER = String.fromEnvironment('BUILD_VER', defaultValue: dev_version);
       5             :   static const BUILD_DATE = String.fromEnvironment('BUILD_DATE', defaultValue: "now");
       6             :   // set by the automated testing harness to circumvent untestable behaviours
       7             :   // for example:
       8             :   // * MessageRow: always show "reply" button (because can't test onHover or swipe)
       9             :   static const TEST_MODE = String.fromEnvironment('TEST_MODE', defaultValue: "false") == "true";
      10             : 
      11           0 :   static void debugLog(String log) {
      12           0 :     if (EnvironmentConfig.BUILD_VER == dev_version) {
      13           0 :       String datetime = DateTime.now().toIso8601String();
      14           0 :       print("$datetime $log");
      15             :     }
      16             :   }
      17             : }

Generated by: LCOV version 1.14