test

package
v1.0.3 Latest Latest
Warning

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

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

README

Test by package

this will run all tests in the package go test ./test/rpc/... -v

Run sequentially: Use this for now

go test -p 1 ./test/... -v

Run parallel:

gotestsum --format=short-verbose ./test/... gotestsum --format=short-verbose ./test/rpc/... gotestsum --format=short-verbose ./client/e2ee/store/...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAndLoginUser

func RegisterAndLoginUser(t *testing.T, client *app.RpcClient, username string)

Helper function for registering and logging in a user

func WaitForWelcomeMessage

func WaitForWelcomeMessage(t *testing.T, client *app.RpcClient, username string)

Helper function for waiting for the welcome message

Types

type MockTimeProvider

type MockTimeProvider struct {
	CurrentTime time.Time
}

func (*MockTimeProvider) Advance

func (mtp *MockTimeProvider) Advance(d time.Duration)

func (*MockTimeProvider) Now

func (mtp *MockTimeProvider) Now() time.Time

Directories

Path Synopsis
test/setup/bufconn_setup.go
test/setup/bufconn_setup.go

Jump to

Keyboard shortcuts

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