Documentation ¶
Index ¶
- func MockBlockTimer() protocol.BlockTimer
- func MockReceiptValidator() module.ReceiptValidator
- func MockSealValidator(sealsDB storage.Seals) module.SealValidator
- func RunWithBootstrapState(t testing.TB, rootSnapshot protocol.Snapshot, ...)
- func RunWithFollowerProtocolState(t testing.TB, rootSnapshot protocol.Snapshot, ...)
- func RunWithFollowerProtocolStateAndHeaders(t testing.TB, rootSnapshot protocol.Snapshot, ...)
- func RunWithFullProtocolState(t testing.TB, rootSnapshot protocol.Snapshot, ...)
- func RunWithFullProtocolStateAndConsumer(t testing.TB, rootSnapshot protocol.Snapshot, consumer protocol.Consumer, ...)
- func RunWithFullProtocolStateAndMetrics(t testing.TB, rootSnapshot protocol.Snapshot, metrics module.ComplianceMetrics, ...)
- func RunWithFullProtocolStateAndValidator(t testing.TB, rootSnapshot protocol.Snapshot, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockBlockTimer ¶
func MockBlockTimer() protocol.BlockTimer
MockBlockTimer returns BlockTimer that accepts all timestamps without performing any checks.
func MockReceiptValidator ¶
func MockReceiptValidator() module.ReceiptValidator
MockReceiptValidator returns a ReceiptValidator that accepts all receipts without performing any integrity checks.
func MockSealValidator ¶
func MockSealValidator(sealsDB storage.Seals) module.SealValidator
MockSealValidator returns a SealValidator that accepts all seals without performing any integrity checks, returns first seal in block as valid one
func RunWithBootstrapState ¶
func RunWithFullProtocolStateAndMetrics ¶
func RunWithFullProtocolStateAndMetrics(t testing.TB, rootSnapshot protocol.Snapshot, metrics module.ComplianceMetrics, f func(*badger.DB, *pbadger.MutableState))
func RunWithFullProtocolStateAndValidator ¶
func RunWithFullProtocolStateAndValidator(t testing.TB, rootSnapshot protocol.Snapshot, validator module.ReceiptValidator, f func(*badger.DB, *pbadger.MutableState))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.