github.com/MetalBlockchain/metalgo@v1.11.9/vms/proposervm/block/header_test.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package block
     5  
     6  import "github.com/stretchr/testify/require"
     7  
     8  func equalHeader(require *require.Assertions, want, have Header) {
     9  	require.Equal(want.ChainID(), have.ChainID())
    10  	require.Equal(want.ParentID(), have.ParentID())
    11  	require.Equal(want.BodyID(), have.BodyID())
    12  }