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/uassert/v0

Package
Open in gnoweb ↗

Overview

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

Files (8)

  • README.mdmarkdown
  • gnomod.tomltoml
  • doc.gnogno
  • helpers.gnogno
  • types.gnogno
  • uassert.gnogno
  • mock_test.gnogno
  • uassert_test.gnogno
  • mock_test.gnogno
    1package uassert_test23import (4	"fmt"5	"testing"67	"gno.land/p/nt/uassert/v0"8)910type mockTestingT struct {11	fmt  string12	args []any13}1415// --- interface mock1617var _ uassert.TestingT = (*mockTestingT)(nil)1819func (mockT *mockTestingT) Helper()                      { /* noop */ }20func (mockT *mockTestingT) Skip(args ...any)             { /* not implmented */ }21func (mockT *mockTestingT) Fail()                        { /* not implmented */ }22func (mockT *mockTestingT) FailNow()                     { /* not implmented */ }23func (mockT *mockTestingT) Logf(fmt string, args ...any) { /* noop */ }2425func (mockT *mockTestingT) Fatalf(fmt string, args ...any) {26	mockT.fmt = "fatal: " + fmt27	mockT.args = args28}2930func (mockT *mockTestingT) Errorf(fmt string, args ...any) {31	mockT.fmt = "error: " + fmt32	mockT.args = args33}3435// --- helpers3637func (mockT *mockTestingT) actualString() string {38	res := fmt.Sprintf(mockT.fmt, mockT.args...)39	mockT.reset()40	return res41}4243func (mockT *mockTestingT) reset() {44	mockT.fmt = ""45	mockT.args = nil46}4748func (mockT *mockTestingT) equals(t *testing.T, expected string) {49	actual := mockT.actualString()5051	if expected != actual {52		t.Errorf("mockT differs:\n- expected: %s\n- actual:   %s\n", expected, actual)53	}54}5556func (mockT *mockTestingT) empty(t *testing.T) {57	if mockT.fmt != "" || mockT.args != nil {58		actual := mockT.actualString()59		t.Errorf("mockT should be empty, got %s", actual)60	}61}62

    Functions

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

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