PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/nt/testutils/v0

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
v0
Namespace
nt / testutils
Files
7 (README)(gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/nt/testutils/v0
gno
0.9

Files (7)

  • README.mdmarkdown
  • gnomod.tomltoml
  • access.gnogno
  • crypto.gnogno
  • doc.gnogno
  • misc.gnogno
  • crypto_test.gnogno
access.gnogno
1package testutils23// for testing access. see tests/files/access*.go45// NOTE: non-package variables cannot be overridden, except during init().6var (7	TestVar1 int8	testVar2 int9)1011func init() {12	TestVar1 = 12313	testVar2 = 45614}1516type TestAccessStruct struct {17	PublicField  string18	privateField string19}2021func (tas TestAccessStruct) PublicMethod() string {22	return tas.PublicField + "/" + tas.privateField23}2425func (tas TestAccessStruct) privateMethod() string {26	return tas.PublicField + "/" + tas.privateField27}2829func NewTestAccessStruct(pub, priv string) TestAccessStruct {30	return TestAccessStruct{31		PublicField:  pub,32		privateField: priv,33	}34}3536// see access6.g0 etc.37type PrivateInterface interface {38	privateMethod() string39}4041func PrintPrivateInterface(pi PrivateInterface) {42	println("testutils.PrintPrivateInterface", pi.privateMethod())43}44

Functions

not supported for pure packages by the node (vm/qfuncs)

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.