testutil

package
v0.0.0-...-9b7ba46 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 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(namespace string, collection string) (uint64, error)

func (*ErrorCausingBTLPolicy) GetExpiringBlock

func (p *ErrorCausingBTLPolicy) GetExpiringBlock(namespace 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