testingcommon

package
v0.0.13-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestUser

func CreateTestUser(t *testing.T, walletAddress string)

func ExtractPayload

func ExtractPayload(response *types.ApiResponse, out interface{})

Converts map created by json decoder to struct out should be pointer (&payload)

func PrepareAndGetAuthHeader

func PrepareAndGetAuthHeader(t *testing.T, testWalletAddress string) string

Types

type TestWallet

type TestWallet struct {
	PrivateKey    string
	WalletAddress string
}

func GenerateWallet

func GenerateWallet() *TestWallet

Jump to

Keyboard shortcuts

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