github.com/prysmaticlabs/prysm@v1.4.4/beacon-chain/operations/voluntaryexits/mock.go (about)

     1  package voluntaryexits
     2  
     3  import (
     4  	"context"
     5  
     6  	types "github.com/prysmaticlabs/eth2-types"
     7  	iface "github.com/prysmaticlabs/prysm/beacon-chain/state/interface"
     8  	eth "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1"
     9  )
    10  
    11  // PoolMock is a fake implementation of PoolManager.
    12  type PoolMock struct {
    13  	Exits []*eth.SignedVoluntaryExit
    14  }
    15  
    16  // PendingExits --
    17  func (m *PoolMock) PendingExits(_ iface.ReadOnlyBeaconState, _ types.Slot, _ bool) []*eth.SignedVoluntaryExit {
    18  	return m.Exits
    19  }
    20  
    21  // InsertVoluntaryExit --
    22  func (m *PoolMock) InsertVoluntaryExit(_ context.Context, _ iface.ReadOnlyBeaconState, exit *eth.SignedVoluntaryExit) {
    23  	m.Exits = append(m.Exits, exit)
    24  }
    25  
    26  // MarkIncluded --
    27  func (*PoolMock) MarkIncluded(_ *eth.SignedVoluntaryExit) {
    28  	panic("implement me")
    29  }