@@ -43,22 +43,38 @@ func TestBabbageBlockUtxorpc(t *testing.T) {
4343 }
4444
4545 if ! bytes .Equal (utxoBlock .Header .Hash , hashBytes ) {
46- t .Errorf ("unexpected block hash: got %x, want %x" , utxoBlock .Header .Hash , hashBytes )
46+ t .Errorf (
47+ "unexpected block hash: got %x, want %x" ,
48+ utxoBlock .Header .Hash ,
49+ hashBytes ,
50+ )
4751 }
4852
4953 // Verify block number matches what's in the header body
5054 if utxoBlock .Header .Height != block .BlockHeader .Body .BlockNumber {
51- t .Errorf ("unexpected block height: got %d, want %d" , utxoBlock .Header .Height , block .BlockHeader .Body .BlockNumber )
55+ t .Errorf (
56+ "unexpected block height: got %d, want %d" ,
57+ utxoBlock .Header .Height ,
58+ block .BlockHeader .Body .BlockNumber ,
59+ )
5260 }
5361
5462 // Verify slot number matches what's in the header body
5563 if utxoBlock .Header .Slot != block .BlockHeader .Body .Slot {
56- t .Errorf ("unexpected block slot: got %d, want %d" , utxoBlock .Header .Slot , block .BlockHeader .Body .Slot )
64+ t .Errorf (
65+ "unexpected block slot: got %d, want %d" ,
66+ utxoBlock .Header .Slot ,
67+ block .BlockHeader .Body .Slot ,
68+ )
5769 }
5870
5971 // Verify transactions
6072 if len (utxoBlock .Body .Tx ) != len (block .TransactionBodies ) {
61- t .Errorf ("unexpected transaction count: got %d, want %d" , len (utxoBlock .Body .Tx ), len (block .TransactionBodies ))
73+ t .Errorf (
74+ "unexpected transaction count: got %d, want %d" ,
75+ len (utxoBlock .Body .Tx ),
76+ len (block .TransactionBodies ),
77+ )
6278 }
6379
6480 // Verify the first transaction as a sample
@@ -69,11 +85,19 @@ func TestBabbageBlockUtxorpc(t *testing.T) {
6985 }
7086
7187 if len (tx .Inputs ) != len (block .TransactionBodies [0 ].TxInputs .Items ()) {
72- t .Errorf ("unexpected input count in first tx: got %d, want %d" , len (tx .Inputs ), len (block .TransactionBodies [0 ].TxInputs .Items ()))
88+ t .Errorf (
89+ "unexpected input count in first tx: got %d, want %d" ,
90+ len (tx .Inputs ),
91+ len (block .TransactionBodies [0 ].TxInputs .Items ()),
92+ )
7393 }
7494
7595 if len (tx .Outputs ) != len (block .TransactionBodies [0 ].TxOutputs ) {
76- t .Errorf ("unexpected output count in first tx: got %d, want %d" , len (tx .Outputs ), len (block .TransactionBodies [0 ].TxOutputs ))
96+ t .Errorf (
97+ "unexpected output count in first tx: got %d, want %d" ,
98+ len (tx .Outputs ),
99+ len (block .TransactionBodies [0 ].TxOutputs ),
100+ )
77101 }
78102 }
79103}
0 commit comments