util

package
v0.10.4-reload-pending... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: AGPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtocolState

func ProtocolState(t testing.TB, db *badger.DB) *pbadger.State

func RunWithProtocolState

func RunWithProtocolState(t testing.TB, f func(*badger.DB, *pbadger.State))

func RunWithProtocolStateAndConsumer

func RunWithProtocolStateAndConsumer(t testing.TB, consumer protocol.Consumer, f func(*badger.DB, *pbadger.State))

func RunWithProtocolStateDeps

func RunWithProtocolStateDeps(t testing.TB, create createState, f func(*badger.DB, *pbadger.State))

use this function if you'd like to create your own protocol state with customized dependencies

func WithProtocolState

func WithProtocolState(t testing.TB, db *badger.DB, create createState) *pbadger.State

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL