mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 03:31:20 +00:00
91bd477f4f
* checkpoint changes * gaz * add error check * gaz * fix tests * fix tests * terence's review * terence's review Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
21 lines
432 B
Go
21 lines
432 B
Go
package testing
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/shared/interfaces"
|
|
)
|
|
|
|
// MockMetadataProvider is a fake implementation of the MetadataProvider interface.
|
|
type MockMetadataProvider struct {
|
|
Data interfaces.Metadata
|
|
}
|
|
|
|
// Metadata --
|
|
func (m *MockMetadataProvider) Metadata() interfaces.Metadata {
|
|
return m.Data
|
|
}
|
|
|
|
// MetadataSeq --
|
|
func (m *MockMetadataProvider) MetadataSeq() uint64 {
|
|
return m.Data.SequenceNumber()
|
|
}
|