testutils

package
v0.0.0-...-eec4b17 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(pathToDbSchema string) (*database.Database, error)

func CreateServer

func CreateServer(db authentication.Database) *grpc.Server

CreateServer creates a GRPC server instance with the proper options

func GetTestImage

func GetTestImage() ([]byte, error)

GetTestImage returns the bytes of an image that can be used during tests

func GetTimePointer

func GetTimePointer(t time.Time) *time.Time

GetTimePointer returns a pointer to the given time

func StartServerAndConnect

func StartServerAndConnect(server *grpc.Server) (*grpc.ClientConn, error)

StartServerAndConnect starts the given server and connects to it, returning the gRPC connection instance that can be used to create clients

func TruncateDatabase

func TruncateDatabase(db *database.Database) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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