package
0.0.5
Repository: https://github.com/goplugin/plugin.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

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
AssertEthTxAttemptCountStays asserts that the number of tx attempts remains at the provided value.
AssertPipelineRunsStays asserts that the number of pipeline runs for a particular job remains at the provided values.
No description provided by the author
AssertRunsStays asserts that the number of job runs for a particular job remains at the provided values.
AssertServerResponse is used to match against a client response, will print any errors returned if the request fails.
AssertSyncEventCountStays ensures that the event sync count stays consistent for a period of time.
No description provided by the author
No description provided by the author
No description provided by the author
BigHexInt create hexutil.Big value from given value.
BlockWithTransactions returns a new ethereum block with transactions matching the given gas prices.
No description provided by the author
No description provided by the author
No description provided by the author
`require.Equal` currently has broken handling of `time.Time` values, so we have to do equality comparisons of these structs manually.
CreateBridgeTypeViaWeb creates a bridgetype via web using /v2/bridge_types.
CreateExternalInitiatorViaWeb creates a bridgetype via web using /v2/bridge_types.
CreateHelloWorldJobViaWeb creates a HelloWorld JobSpec with the given MockServer Url.
No description provided by the author
No description provided by the author
CreateJobRunViaWeb creates JobRun via web using /v2/specs/ID/runs.
CreateJobRunWithStatus returns a new job run with the specified status that has been persisted.
CreateJobSpecViaWeb creates a jobspec via web using /v2/specs.
No description provided by the author
No description provided by the author
CreateJobSpecViaWeb creates a jobspec via web using /v2/specs.
No description provided by the author
No description provided by the author
No description provided by the author
EmptyMockSubscription return empty MockSubscription.
No description provided by the author
No description provided by the author
No description provided by the author
FixtureCreateJobViaWeb creates a job from a fixture using /v2/specs.
GenericEncode eth encodes values based on the provided types.
No description provided by the author
GetLogs drains logs of EVM log representations.
Head given the value convert it into an Head.
JobRunStays tests if a JobRun will consistently stay at the specified status.
JobRunStaysPendingIncomingConfirmations tests if a JobRun will stay at the PendingIncomingConfirmations Status.
JSONFromBytes creates JSON from a given byte array.
JSONFromFixture create models.JSON from file path.
JSONFromString create JSON from given body and arguments.
JSONResultFromFixture create model.JSON with params.result found in the given file path.
LogFromFixture create ethtypes.log from file path.
No description provided by the author
No description provided by the author
No description provided by the author
Mine forces the simulated backend to produce a new block every 2 seconds.
No description provided by the author
MockApplicationEthCalls mocks all calls made by the chainlink application as standard when starting and stopping.
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MustHelloWorldAgreement returns the fixture hello world agreement.
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
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
No description provided by the author
MustInsertRandomKey inserts a randomly generated (not cryptographically secure) key for testing If using this with the keystore, it should be called before the keystore loads keys from the database.
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MustJSONDel uses sjson.Delete to remove a path from a JSON string and returns the string.
No description provided by the author
MustJSONSet uses sjson.Set to set a path in a JSON string and returns the string See https://github.com/tidwall/sjson.
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
No description provided by the author
No description provided by the author
MustReadFile loads a file but should never fail.
No description provided by the author
No description provided by the author
NewAddress return a random new address.
NewApplication creates a New TestApplication along with a NewConfig It mocks the keystore with no keys or accounts by default.
NewApplicationWithConfig creates a New TestApplication with specified test config.
NewApplicationWithConfigAndKey creates a new TestApplication with the given testconfig it will also provide an unlocked account on the keystore.
No description provided by the author
NewApplicationWithKey creates a new TestApplication along with a new config It uses the native keystore and will load any keys that are in the database.
No description provided by the author
NewBridgeType create new bridge type given info slice.
NewConfig returns a new TestConfig.
NewConfigWithWSServer return new config with specified wsserver.
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
No description provided by the author
NewEventWebSocketServer returns a new EventWebSocketServer.
NewHash return random Keccak256.
NewHTTPMockServer create http test server with passed in parameters.
No description provided by the author
No description provided by the author
NewHTTPMockServerWithRequest creates http test server that makes the request available in the callback.
NewJob return new NoOp JobSpec.
No description provided by the author
NewJobRun returns a newly initialized job run for test purposes only.
NewJobRunPendingBridge returns a new job run in the pending bridge state.
NewJobWithExternalInitiator creates new Job with external initiator.
NewJobWithFluxMonitorInitiator create new Job with FluxMonitor initiator.
NewJobWithFluxMonitorInitiator create new Job with FluxMonitor initiator.
NewJobWithLogInitiator create new Job with ethlog initiator.
NewJobWithRandomnessLog create new Job with VRF initiator.
NewJobWithRunAtInitiator create new Job with RunAt initiator.
NewJobWithRunLogInitiator creates a new JobSpec with the RunLog initiator.
NewJobWithSchedule create new job with the given schedule.
NewJobWithWebInitiator create new Job with web initiator.
No description provided by the author
No description provided by the author
NewMockCron returns a new mock cron.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewRandomnessRequestLog(t, r, emitter, blk) is a RandomnessRequest log for the randomness request log represented by r.
No description provided by the author
No description provided by the author
No description provided by the author
NewRunLog create types.Log for given jobid, address, block, and json.
No description provided by the author
newIdentity returns a go-ethereum abstraction of an ethereum account for interacting with contract golang wrappers.
NewStore creates a new store.
NewStoreWithConfig creates a new store with given config.
NewTask given the tasktype and json params return a TaskSpec.
NewTestConfig returns a test configuration.
NewTriggerClock returns a new TriggerClock, that a test can manually fire to continue processing in a Clock dependency.
NewWSServer returns a new wsserver.
No description provided by the author
NullableTime will return a valid nullable time given time.Time.
ParseISO8601 given the time string it Must parse the time and return it.
No description provided by the author
No description provided by the author
ParseJSONAPIResponse parses the response and returns the JSONAPI resource.
ParseJSONAPIResponseMeta parses the bytes of the root document and returns a map of *json.RawMessage's within the 'meta' key.
ParseJSONAPIResponseMetaCount parses the bytes of the root document and returns the value of the 'count' key from the 'meta' section.
ParseNullableTime given a time string parse it into a null.Time.
ParseResponseBody will parse the given response into a byte slice.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReadLogs returns the contents of the applications log file as a string.
No description provided by the author
No description provided by the author
No description provided by the author
StoredVRFKey creates a VRFKeyStore on store, imports a known VRF key into it, and returns the corresponding public key.
No description provided by the author
No description provided by the author
TransactionsFromGasPrices returns transactions matching the given gas prices.
TxReceiptFromFixture create ethtypes.log from file path.
No description provided by the author
No description provided by the author
UpdateJobRunViaWeb updates jobrun via web using /v2/runs/ID.
No description provided by the author
No description provided by the author
No description provided by the author
WaitForJobRunStatus waits for a JobRun to reach given status.
WaitForJobRunToComplete waits for a JobRun to reach Completed Status.
WaitForJobRunToPendBridge waits for a JobRun to reach PendingBridge Status.
WaitForJobRunToPendIncomingConfirmations waits for a JobRun to reach PendingIncomingConfirmations Status.
WaitForJobRunToPendOutgoingConfirmations waits for a JobRun to reach PendingOutgoingConfirmations Status.
No description provided by the author
No description provided by the author
WaitForRuns waits for the wanted number of runs then returns a slice of the JobRuns.
WaitForRunsAtLeast waits for at least the passed number of runs to start.
Polls until the passed in jobID has count number of job spec errors.
WaitForSpecErrorV2 polls until the passed in jobID has count number of job spec errors.
WaitForSyncEventCount checks if the sync event count eventually reaches the amound specified in parameter want.
WebURL parses a url into a models.WebURL.

# Constants

AllowUnstarted enable an application that can be used in tests without being started.
APIEmail is the email of the fixture API user.
APIKey of the fixture API user.
APISecret of the fixture API user.
AssertNoActionTimeout shouldn't be too long, or it will slow down tests.
DBPollingInterval can't be too short to avoid DOSing the test database.
DBWaitTimeout is how long we wait by default for something to appear in the DB.
DefaultKeyAddress is the ETH address of the fixture key.
DefaultKeyFixtureFileName is the filename of the fixture key.
DefaultKeyJSON is the JSON for the default key encrypted with fast scrypt and password 'password' (used for fixture file).
DefaultOCRKeyBundleID is the ID of the fixture ocr key bundle.
DefaultPeerID is the peer ID of the fixture p2p key.
A peer ID without an associated p2p key.
Password just a password we use everywhere for testing.
RootDir the root directory for cltest.
SessionSecret is the hardcoded secret solely used for test.
No description provided by the author
No description provided by the author

# Variables

DefaultOCRKeyBundleIDSha256 is the ID of the fixture ocr key bundle.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

BlockedRunner is a Runner that blocks until its channel is posted to.
CallbackAuthenticator contains a call back authenticator method.
EmptyRunner is an EmptyRunner.
EventWebSocketServer is a web socket server designed specifically for testing.
No description provided by the author
InstanceAppFactory is an InstanceAppFactory.
InstantClock an InstantClock.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MockCountingPrompter is a mock counting prompt.
MockCron represents a mock cron.
MockCronEntry a cron schedule and function.
MockHeadTrackable allows you to mock HeadTrackable.
No description provided by the author
No description provided by the author
No description provided by the author
MockSubscription a mock subscription.
NeverSleeper is a struct that never sleeps.
RendererMock a mock renderer.
SimulatedBackendClient is an eth.Client implementation using a simulated blockchain backend.
No description provided by the author
TestApplication holds the test application and test servers.
TestConfig struct with test store and wsServer.
TriggerClock implements the AfterNower interface, but must be manually triggered to resume computation on After.

# Interfaces

EthereumLogIterator is the interface provided by gethwrapper representations of EVM logs.

# Type aliases

No description provided by the author