LCOV - code coverage report
Current view: top level - src - cbor_listener_debug.dart (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 10 17 58.8 %
Date: 2017-04-06 Functions: 0 0 -

          Line data    Source code
       1             : /*
       2             :  * Package : Cbor
       3             :  * Author : S. Hamblett <steve.hamblett@linux.com>
       4             :  * Date   : 12/12/2016
       5             :  * Copyright :  S.Hamblett
       6             :  */
       7             : 
       8             : part of cbor;
       9             : 
      10             : /// A simple debug listener.
      11             : class ListenerDebug extends Listener {
      12             :   void onInteger(int value) {
      13           2 :     print("Integer $value");
      14             :   }
      15             : 
      16             :   void banner(String text) {
      17           1 :     print(text);
      18             :   }
      19             : 
      20             :   void onBytes(typed.Uint8Buffer data, int size) {
      21           0 :     print("Bytes with size: $size");
      22             :   }
      23             : 
      24             :   void onString(String str) {
      25           2 :     print("String $str");
      26             :   }
      27             : 
      28             :   void onArray(int size) {
      29           2 :     print("Array size $size");
      30             :   }
      31             : 
      32             :   void onArrayElement(int value) {
      33           0 :     print("Array Element $value");
      34             :   }
      35             : 
      36             :   void onMap(int size) {
      37           2 :     print("Map size $size");
      38             :   }
      39             : 
      40             :   void onTag(int tag) {
      41           2 :     print("Tag $tag");
      42             :   }
      43             : 
      44             :   void onSpecial(int code) {
      45           0 :     print("Code $code");
      46             :   }
      47             : 
      48             :   void onSpecialFloat(double value) {
      49           2 :     print("Float Value $value");
      50             :   }
      51             : 
      52             :   void onBool(bool state) {
      53           2 :     print("State $state");
      54             :   }
      55             : 
      56             :   void onNull() {
      57           1 :     print("Null");
      58             :   }
      59             : 
      60             :   void onUndefined() {
      61           0 :     print("Undefined");
      62             :   }
      63             : 
      64             :   void onError(String error) {
      65           0 :     print("Error $error");
      66             :   }
      67             : 
      68             :   void onExtraInteger(int value, int sign) {
      69           0 :     print("Extra Integer value $value, Sign $sign");
      70             :   }
      71             : 
      72             :   void onExtraTag(int tag) {
      73           0 :     print("Extra Tag $tag");
      74             :   }
      75             : 
      76             :   void onIndefinite(String text) {
      77           2 :     print("Indefinate Item $text");
      78             :   }
      79             : }

Generated by: LCOV version 1.10