testutil

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const TestingDeterministicPrivateKey = "" /* 128-byte string literal not displayed */

TestingDeterministicPrivateKey is used as a seed to generate deterministic private keys

Variables

This section is empty.

Functions

func GetTestingPrivateKey

func GetTestingPrivateKey(idx ...int) ed25519.PrivateKey

func GetTestingPrivateKeys

func GetTestingPrivateKeys(n int, offsIndex ...int) []ed25519.PrivateKey

func RWMutexWriteLocked

func RWMutexWriteLocked(rw *sync.RWMutex) bool

Types

type SyncCounters

type SyncCounters struct {
	// contains filtered or unexported fields
}

func NewSynCounters

func NewSynCounters() *SyncCounters

func (*SyncCounters) Add

func (s *SyncCounters) Add(name string, i int)

func (*SyncCounters) CheckValues

func (s *SyncCounters) CheckValues(expected map[string]int) error

func (*SyncCounters) Inc

func (s *SyncCounters) Inc(name string)

func (*SyncCounters) Set

func (s *SyncCounters) Set(name string, i int)

func (*SyncCounters) String

func (s *SyncCounters) String() string

func (*SyncCounters) Value

func (s *SyncCounters) Value(name string) int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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