package
0.5.0
Repository: https://github.com/goplugin/pluginv2.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AfterWaitTimeout returns a channel that will send a time value when the WaitTimeout is reached.
No description provided by the author
AssertEventually waits for f to return true.
Context returns a context with the test's deadline, if available.
IntToHex converts int to geth-compatible hex.
LoggerAssertMaxLevel returns a test logger which is observed on cleanup and asserts that no lines were logged at a higher level.
MustNewSimTransactor returns a transactor for interacting with the geth simulated backend.
MustParseBigInt parses a big int value from string or fails the test.
MustParseURL parses the URL or fails the test.
NewAddress return a random new address.
No description provided by the author
NewRandomEVMChainID returns a suitable random chain ID that will not conflict with fixtures.
NewRandomPositiveInt64 returns a (non-cryptographically secure) random positive int64.
No description provided by the author
NewWSServer starts a websocket server which invokes callback for each message received.
Ptr takes pointer of anything.
Random32Byte returns a random [32]byte.
RandomizeName appends a random UUID to the provided name.
RequireLogMessage fails the test if emitted logs don't contain the given message.
SkipShort skips tb during -short runs, and notes why.
SkipShortDB skips tb during -short runs, and notes the DB dependency.
WaitForLogMessage waits until at least one log message containing the specified msg is emitted.
WaitForLogMessageCount waits until at least count log message containing the specified msg is emitted.
WaitTimeout returns a timeout based on the test's Deadline, if available.
WaitWithTimeout waits for the channel to close (or receive anything) and fatals the test if the default wait timeout is exceeded.
WSServerURL returns a ws:// url for the server.

# Constants

DefaultWaitTimeout is the default wait timeout.
Password just a password we use everywhere for testing.
TestInterval is just a sensible poll interval that gives fast tests without risk of spamming.

# Variables

FixtureChainID matches the chain always added by fixtures.sql It is set to 0 since no real chain ever has this ID and allows a virtual "test" chain ID to be used without clashes.
SimulatedChainID is the chain ID for the go-ethereum simulated backend.

# Structs

No description provided by the author

# Type aliases

JSONRPCHandler is called with the method and request param(s).