package
4.0.2-stable+incompatible
Repository: https://github.com/algorand/go-algorand.git
Documentation: pkg.go.dev
# Functions
AfterBlock creates a new Event with the type AfterBlockEvent.
AfterOpcode creates a new Event with the type AfterOpcodeEvent.
AfterProgram creates a new Event with the type AfterProgramEvent.
AfterTxn creates a new Event with the type AfterTxnEvent.
AfterTxnGroup creates a new Event with the type AfterTxnGroupEvent.
AssertEventsEqual asserts that two slices of Events are equal, taking into account complex equality of StateDeltas.
BeforeBlock creates a new Event with the type BeforeBlockEvent for a particular round.
BeforeOpcode creates a new Event with the type BeforeOpcodeEvent.
BeforeProgram creates a new Event with the type BeforeProgramEvent.
BeforeTxn creates a new Event with the type BeforeTxnEvent.
BeforeTxnGroup creates a new Event with the type BeforeTxnGroupEvent.
FlattenEvents flattens a slice of slices into a single slice of Events.
GetTestScenarios returns scenarios for testing code that invokes a logic.EvalTracer.
MergeStateDeltas merges multiple state deltas into one.
OpcodeEvents returns a slice of events that represent calling `count` opcodes.
StripInnerTxnGroupIDsFromEvents removes any inner transaction GroupIDs that are present in the TxnApplyData fields of the events.
# Constants
AfterBlockEvent represents the logic.EvalTracer.AfterBlock event.
AfterOpcodeEvent represents the logic.EvalTracer.AfterOpcode event.
AfterProgramEvent represents the logic.EvalTracer.AfterProgram event.
AfterTxnEvent represents the logic.EvalTracer.AfterTxn event.
AfterTxnGroupEvent represents the logic.EvalTracer.AfterTxnGroup event.
ApprovalOutcome indicates the scenario should approve the program.
BeforeBlockEvent represents the logic.EvalTracer.BeforeBlock event.
BeforeOpcodeEvent represents the logic.EvalTracer.BeforeOpcode event.
BeforeProgramEvent represents the logic.EvalTracer.BeforeProgram event.
BeforeTxnEvent represents the logic.EvalTracer.BeforeTxn event.
BeforeTxnGroupEvent represents the logic.EvalTracer.BeforeTxnGroup event.
ErrorOutcome indicates the scenario should error during the program.
ProgramResultError represents a program that errored.
ProgramResultPass represents a program that passed.
ProgramResultReject represents a program that rejected.
RejectionOutcome indicates the scenario should reject the program.
# Structs
Event represents a logic.EvalTracer event.
TestScenario represents a testing scenario.
TestScenarioInfo holds arguments used to call a TestScenarioGenerator.
Tracer is a mock tracer that implements logic.EvalTracer.
# Type aliases
EventType represents a type of logic.EvalTracer event.
ProgramResult represents the result of a program execution.
TestScenarioGenerator is a function which instantiates a TestScenario.
TestScenarioOutcome represents an outcome of a TestScenario.