stdlibs

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

README

tests/stdlibs

This directory contains test-specific standard libraries. These are only available when testing gno code in _test.gno and _filetest.gno files. Re-declarations of functions already existing override the definitions of the normal stdlibs directory.

Documentation

Overview

Package stdlibs provides supplemental stdlibs for the testing environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitOrder

func InitOrder() []string

InitOrder returns the initialization order of the standard libraries. This is calculated starting from the list of all standard libraries and iterating through each: if a package depends on an unitialized package, that is processed first, and so on recursively; matching the behaviour of Go's program initialization.

func NativeStore

func NativeStore(pkgPath string, name gno.Name) func(*gno.Machine)

Types

type NativeFunc

type NativeFunc struct {
	// contains filtered or unexported fields
}

NativeFunc represents a function in the standard library which has a native (go-based) implementation, commonly referred to as a "native binding".

func (*NativeFunc) HasMachineParam

func (n *NativeFunc) HasMachineParam() bool

HasMachineParam returns whether the given native binding has a machine parameter. This means that the Go version of this function expects a *gno.Machine as its first parameter.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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