@@ -186,10 +186,30 @@ func TestNewBlockContext(t *testing.T) {
186
186
for _ , tc := range testCases {
187
187
t .Run (tc .name , func (t * testing.T ) {
188
188
blockContext := NewBlockContext (tc .block , tc .networkMagic )
189
- assert .Equal (t , tc .expectedEra , blockContext .Era , "Era should match" )
190
- assert .Equal (t , tc .expectedBlock , blockContext .BlockNumber , "Block number should match" )
191
- assert .Equal (t , tc .expectedSlot , blockContext .SlotNumber , "Slot number should match" )
192
- assert .Equal (t , tc .networkMagic , blockContext .NetworkMagic , "Network magic should match" )
189
+ assert .Equal (
190
+ t ,
191
+ tc .expectedEra ,
192
+ blockContext .Era ,
193
+ "Era should match" ,
194
+ )
195
+ assert .Equal (
196
+ t ,
197
+ tc .expectedBlock ,
198
+ blockContext .BlockNumber ,
199
+ "Block number should match" ,
200
+ )
201
+ assert .Equal (
202
+ t ,
203
+ tc .expectedSlot ,
204
+ blockContext .SlotNumber ,
205
+ "Slot number should match" ,
206
+ )
207
+ assert .Equal (
208
+ t ,
209
+ tc .networkMagic ,
210
+ blockContext .NetworkMagic ,
211
+ "Network magic should match" ,
212
+ )
193
213
})
194
214
}
195
215
}
@@ -244,10 +264,30 @@ func TestNewBlockContextEdgeCases(t *testing.T) {
244
264
for _ , tc := range testCases {
245
265
t .Run (tc .name , func (t * testing.T ) {
246
266
blockContext := NewBlockContext (tc .block , tc .networkMagic )
247
- assert .Equal (t , tc .expectedEra , blockContext .Era , "Era should match" )
248
- assert .Equal (t , tc .block .BlockNumber (), blockContext .BlockNumber , "Block number should match" )
249
- assert .Equal (t , tc .block .SlotNumber (), blockContext .SlotNumber , "Slot number should match" )
250
- assert .Equal (t , tc .networkMagic , blockContext .NetworkMagic , "Network magic should match" )
267
+ assert .Equal (
268
+ t ,
269
+ tc .expectedEra ,
270
+ blockContext .Era ,
271
+ "Era should match" ,
272
+ )
273
+ assert .Equal (
274
+ t ,
275
+ tc .block .BlockNumber (),
276
+ blockContext .BlockNumber ,
277
+ "Block number should match" ,
278
+ )
279
+ assert .Equal (
280
+ t ,
281
+ tc .block .SlotNumber (),
282
+ blockContext .SlotNumber ,
283
+ "Slot number should match" ,
284
+ )
285
+ assert .Equal (
286
+ t ,
287
+ tc .networkMagic ,
288
+ blockContext .NetworkMagic ,
289
+ "Network magic should match" ,
290
+ )
251
291
})
252
292
}
253
293
}
0 commit comments