test_utils

package
v0.0.0-...-4af87b5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlocksToHex

func BlocksToHex(b ...[][32]byte) []string

func PrintBlocksAsHex

func PrintBlocksAsHex(api frontend.API, blocks ...[32]frontend.Variable)

func PrintBytesAsHex

func PrintBytesAsHex(api frontend.API, v []frontend.Variable)

func PrintBytesAsNum

func PrintBytesAsNum(b []byte)

func PrintVarAsHex

func PrintVarAsHex(api frontend.API, x frontend.Variable)

PrintVarAsHex decomposes x into bytes and prints the whole thing

func SnarkFunctionTest

func SnarkFunctionTest(f func(frontend.API) []frontend.Variable, outs ...frontend.Variable) func(*testing.T)

func StrBlocks

func StrBlocks(s string, n int) string

StrBlocks injects a space in a string once every n characters

Types

type ProgressReporter

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

ProgressReporter prints percentages on console out; useful for monitoring long tasks

func NewProgressReporter

func NewProgressReporter(n int) *ProgressReporter

func (*ProgressReporter) Update

func (r *ProgressReporter) Update(i int)

Jump to

Keyboard shortcuts

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