mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
2d10bcf179
* move state protos * regen ssz * edit v1 code * fix imports * building * beacon chain builds * validator and shared builds * fuzz builds * changes * spectest builds * tools build * remove import cycle * generate ssz * pcli * gaz * kafka * gaz
21 lines
431 B
Go
21 lines
431 B
Go
package testing
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/proto/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()
|
|
}
|