LCOV - code coverage report
Current view: top level - crypto/utxo/entities/transactions - electrum_transaction.dart (source / functions) Coverage Total Hit
Test: lcov.info Lines: 81.8 % 11 9
Test Date: 2025-04-01 01:23:07 Functions: - 0 0

            Line data    Source code
       1              : import 'package:walletkit_dart/walletkit_dart.dart';
       2              : 
       3              : class ElectrumTransactionInfo {
       4              :   final int height;
       5              :   final String hash;
       6              : 
       7            9 :   const ElectrumTransactionInfo(
       8              :     this.height,
       9              :     this.hash,
      10              :   );
      11              : 
      12            9 :   factory ElectrumTransactionInfo.fromJson(Map<String, dynamic> json) {
      13           27 :     return ElectrumTransactionInfo(json['height'], json['tx_hash']);
      14              :   }
      15              : 
      16            7 :   @override
      17              :   bool operator ==(Object other) =>
      18            7 :       other is ElectrumTransactionInfo &&
      19           21 :       other.runtimeType == runtimeType &&
      20           21 :       other.hash == hash;
      21              : 
      22            9 :   @override
      23           18 :   int get hashCode => hash.hashCode;
      24              : 
      25            0 :   NotAvaialableUTXOTransaction getNotAvailableUTXOTransaction(
      26              :       CoinEntity token) {
      27            0 :     return NotAvaialableUTXOTransaction(hash, height, token);
      28              :   }
      29              : }
        

Generated by: LCOV version 2.0-1