Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v0 source pure

v0 - Unaudited: This is an initial version that has not yet been formally audited. A fully audited version will be pu...

Readme View source

v0 - Unaudited This is an initial version of this package that has not yet been formally audited. A fully audited version will be published as a subsequent release. Use in production at your own risk.

testutils

Package testutils provides testing utilities for Gno packages and realms, including test address generation and cryptographic helpers.

Overview

v0 - Unaudited: This is an initial version that has not yet been formally audited. A fully audited version will be published as a subsequent release. Use in production at your own risk.

Package testutils provides testing utilities for Gno packages and realms.

Variables 1

var TestVar1, testVar2

1var (
2	TestVar1 int
3	testVar2 int
4)
source

NOTE: non-package variables cannot be overridden, except during init().

Functions 3

func WrapCall

1func WrapCall(fn func())
source

WrapCall adds a frame to the call stack, for testing call stack depth.

Types 2

type PrivateInterface

interface
1type PrivateInterface interface {
2	privateMethod() string
3}
source

see access6.g0 etc.

type TestAccessStruct

struct
1type TestAccessStruct struct {
2	PublicField  string
3	privateField string
4}
source

Methods on TestAccessStruct

func PublicMethod

method on TestAccessStruct
1func (tas TestAccessStruct) PublicMethod() string
source

Imports 1

  • crypto/bech32 stdlib

Source Files 7