testutil

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SampleBTLPolicy

func SampleBTLPolicy(m map[[2]string]uint64) pvtdatapolicy.BTLPolicy

SampleBTLPolicy helps tests create a sample BTLPolicy The example input entry is [2]string{ns, coll}:btl

Types

type ErrorCausingBTLPolicy

type ErrorCausingBTLPolicy struct {
	Err error
}

func (*ErrorCausingBTLPolicy) GetBTL

func (p *ErrorCausingBTLPolicy) GetBTL(namesapce string, collection string) (uint64, error)

func (*ErrorCausingBTLPolicy) GetExpiringBlock

func (p *ErrorCausingBTLPolicy) GetExpiringBlock(namesapce string, collection string, committingBlock uint64) (uint64, error)

Jump to

Keyboard shortcuts

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