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}62Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.