LCOV - code coverage report
Current view: top level - src/utility - mqtt_client_utilities.dart (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 2 2 100.0 %
Date: 2017-10-09 Functions: 0 0 -

          Line data    Source code
       1             : /*
       2             :  * Package : mqtt_client
       3             :  * Author : S. Hamblett <steve.hamblett@linux.com>
       4             :  * Date   : 28/06/2017
       5             :  * Copyright :  S.Hamblett
       6             :  */
       7             : 
       8             : part of mqtt_client;
       9             : 
      10             : /// General library wide utilties
      11             : class MqttUtilities {
      12             :   /// Sleep function that allows asynchronous activity to continue.
      13             :   /// Time units are seconds
      14             :   static Future asyncSleep(int seconds) {
      15           8 :     return new Future.delayed(new Duration(seconds: seconds));
      16             :   }
      17             : 
      18             :   /// Sleep function that block asynchronous activity.
      19             :   /// Time units are seconds
      20             :   static void syncSleep(int seconds) {
      21           2 :     sleep(new Duration(seconds: seconds));
      22             :   }
      23             : }

Generated by: LCOV version 1.10