testutil

package
v0.0.0-...-1f1d885 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBadgerDB

func NewBadgerDB(t *testing.T, storagePath string) *badger.DB

func NewGenjiDB

func NewGenjiDB(t *testing.T, storagePath string) *genji.DB

func SetupCert

func SetupCert() (serverTLSConf *tls.Config, clientTLSConf *tls.Config, err error)

Types

type MockPDHTTPServer

type MockPDHTTPServer struct {
	Addr   string
	Health bool
	// contains filtered or unexported fields
}

func (*MockPDHTTPServer) Close

func (s *MockPDHTTPServer) Close(t *testing.T)

func (*MockPDHTTPServer) Setup

func (s *MockPDHTTPServer) Setup(t *testing.T)

type MockProfileServer

type MockProfileServer struct {
	Addr       string
	Port       uint
	HttpServer *http.Server
}

func CreateMockProfileServer

func CreateMockProfileServer(t *testing.T) *MockProfileServer

func (*MockProfileServer) Start

func (s *MockProfileServer) Start(t *testing.T)

func (*MockProfileServer) Stop

func (s *MockProfileServer) Stop(t *testing.T)

Jump to

Keyboard shortcuts

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