tests

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountsList

type AccountsList struct {
}

AccountsList tests accounts list endpoint.

func (*AccountsList) Name

func (test *AccountsList) Name() string

Name returns the name of the test.

func (*AccountsList) Run

func (test *AccountsList) Run(t *testing.T)

Run runs the test.

type AggregationConcurrentSigning

type AggregationConcurrentSigning struct {
}

AggregationConcurrentSigning tests aggregation signing method concurrently.

func (*AggregationConcurrentSigning) Name

func (test *AggregationConcurrentSigning) Name() string

Name returns the name of the test.

func (*AggregationConcurrentSigning) Run

func (test *AggregationConcurrentSigning) Run(t *testing.T)

Run runs the test.

type AggregationDoubleSigning

type AggregationDoubleSigning struct {
}

AggregationDoubleSigning tests aggregation signing method concurrently.

func (*AggregationDoubleSigning) Name

func (test *AggregationDoubleSigning) Name() string

Name returns the name of the test.

func (*AggregationDoubleSigning) Run

func (test *AggregationDoubleSigning) Run(t *testing.T)

Run runs the test.

type AggregationProofReferenceSigning

type AggregationProofReferenceSigning struct {
}

AggregationProofReferenceSigning tests sign aggregation endpoint. tested against a block and sig generated from https://github.com/prysmaticlabs/prysm/blob/develop/beacon-chain/sync/validate_aggregate_proof_test.go#L300

func (*AggregationProofReferenceSigning) Name

Name returns the name of the test.

func (*AggregationProofReferenceSigning) Run

Run run the test.

type AggregationReferenceSigning

type AggregationReferenceSigning struct {
}

AggregationReferenceSigning tests sign aggregation endpoint. tested against a block and sig generated from https://github.com/prysmaticlabs/prysm/blob/develop/beacon-chain/sync/validate_aggregate_proof_test.go#L300

func (*AggregationReferenceSigning) Name

func (test *AggregationReferenceSigning) Name() string

Name returns the name of the test.

func (*AggregationReferenceSigning) Run

func (test *AggregationReferenceSigning) Run(t *testing.T)

Run run the test.

type AggregationSigning

type AggregationSigning struct {
}

AggregationSigning tests sign aggregation endpoint.

func (*AggregationSigning) Name

func (test *AggregationSigning) Name() string

Name returns the name of the test.

func (*AggregationSigning) Run

func (test *AggregationSigning) Run(t *testing.T)

Run run the test.

type AggregationSigningAccountNotFound

type AggregationSigningAccountNotFound struct {
}

AggregationSigningAccountNotFound tests sign aggregation when account not found

func (*AggregationSigningAccountNotFound) Name

Name returns the name of the test

func (*AggregationSigningAccountNotFound) Run

Run runs the test.

type AttestationConcurrentSigning

type AttestationConcurrentSigning struct {
}

AttestationConcurrentSigning tests signing method concurrently.

func (*AttestationConcurrentSigning) Name

func (test *AttestationConcurrentSigning) Name() string

Name returns the name of the test.

func (*AttestationConcurrentSigning) Run

func (test *AttestationConcurrentSigning) Run(t *testing.T)

Run runs the test.

type AttestationDoubleSigning

type AttestationDoubleSigning struct {
}

AttestationDoubleSigning tests double signing case

func (*AttestationDoubleSigning) Name

func (test *AttestationDoubleSigning) Name() string

Name returns the name of the test.

func (*AttestationDoubleSigning) Run

func (test *AttestationDoubleSigning) Run(t *testing.T)

Run runs the test.

type AttestationFarFutureSigning

type AttestationFarFutureSigning struct {
}

AttestationFarFutureSigning tests sign attestation endpoint with future signing.

func (*AttestationFarFutureSigning) Name

func (test *AttestationFarFutureSigning) Name() string

Name returns the name of the test.

func (*AttestationFarFutureSigning) Run

func (test *AttestationFarFutureSigning) Run(t *testing.T)

Run run the test.

type AttestationNoSlashingDataSigning

type AttestationNoSlashingDataSigning struct {
}

AttestationNoSlashingDataSigning tests sign attestation endpoint.

func (*AttestationNoSlashingDataSigning) Name

Name returns the name of the test.

func (*AttestationNoSlashingDataSigning) Run

Run run the test.

type AttestationReferenceSigning

type AttestationReferenceSigning struct {
}

AttestationReferenceSigning tests sign attestation endpoint. tested against a block and sig generated from https://github.com/prysmaticlabs/prysm/blob/master/shared/testutil/block.go#L357

func (*AttestationReferenceSigning) Name

func (test *AttestationReferenceSigning) Name() string

Name returns the name of the test.

func (*AttestationReferenceSigning) Run

func (test *AttestationReferenceSigning) Run(t *testing.T)

Run run the test.

type AttestationSigning

type AttestationSigning struct {
}

AttestationSigning tests sign attestation endpoint.

func (*AttestationSigning) Name

func (test *AttestationSigning) Name() string

Name returns the name of the test.

func (*AttestationSigning) Run

func (test *AttestationSigning) Run(t *testing.T)

Run run the test.

type AttestationSigningAccountNotFound

type AttestationSigningAccountNotFound struct {
}

AttestationSigningAccountNotFound tests sign attestation when account not found

func (*AttestationSigningAccountNotFound) Name

Name returns the name of the test

func (*AttestationSigningAccountNotFound) Run

Run runs the test.

type ConfigRead

type ConfigRead struct {
}

ConfigRead tests read config endpoint.

func (*ConfigRead) Name

func (test *ConfigRead) Name() string

Name returns the name of the test.

func (*ConfigRead) Run

func (test *ConfigRead) Run(t *testing.T)

Run runs the test.

type ConfigUpdate added in v1.5.0

type ConfigUpdate struct {
}

ConfigUpdate tests update config endpoint.

func (*ConfigUpdate) Name added in v1.5.0

func (test *ConfigUpdate) Name() string

Name returns the name of the test.

func (*ConfigUpdate) Run added in v1.5.0

func (test *ConfigUpdate) Run(t *testing.T)

Run runs the test.

type ProposalConcurrentSigning

type ProposalConcurrentSigning struct {
	BlockVersion spec.DataVersion
}

ProposalConcurrentSigning tests signing method concurrently.

func (*ProposalConcurrentSigning) Name

func (test *ProposalConcurrentSigning) Name() string

Name returns the name of the test.

func (*ProposalConcurrentSigning) Run

func (test *ProposalConcurrentSigning) Run(t *testing.T)

Run runs the test.

type ProposalDoubleSigning

type ProposalDoubleSigning struct {
	BlockVersion spec.DataVersion
}

ProposalDoubleSigning tests signing method concurrently.

func (*ProposalDoubleSigning) Name

func (test *ProposalDoubleSigning) Name() string

Name returns the name of the test.

func (*ProposalDoubleSigning) Run

func (test *ProposalDoubleSigning) Run(t *testing.T)

Run runs the test.

type ProposalFarFutureSigning

type ProposalFarFutureSigning struct {
	BlockVersion spec.DataVersion
}

ProposalFarFutureSigning tests sign proposal endpoint with future signing.

func (*ProposalFarFutureSigning) Name

func (test *ProposalFarFutureSigning) Name() string

Name returns the name of the test.

func (*ProposalFarFutureSigning) Run

func (test *ProposalFarFutureSigning) Run(t *testing.T)

Run run the test.

type ProposalReferenceSigning

type ProposalReferenceSigning struct {
	BlockVersion spec.DataVersion
}

ProposalReferenceSigning tests sign proposal endpoint.

func (*ProposalReferenceSigning) Name

func (test *ProposalReferenceSigning) Name() string

Name returns the name of the test.

func (*ProposalReferenceSigning) Run

func (test *ProposalReferenceSigning) Run(t *testing.T)

Run run the test.

type ProposalSigning

type ProposalSigning struct {
	BlockVersion spec.DataVersion
}

ProposalSigning tests sign proposal endpoint.

func (*ProposalSigning) Name

func (test *ProposalSigning) Name() string

Name returns the name of the test.

func (*ProposalSigning) Run

func (test *ProposalSigning) Run(t *testing.T)

Run run the test.

type ProposalSigningAccountNotFound

type ProposalSigningAccountNotFound struct {
	BlockVersion spec.DataVersion
}

ProposalSigningAccountNotFound tests sign attestation when account not found

func (*ProposalSigningAccountNotFound) Name

Name returns the name of the test

func (*ProposalSigningAccountNotFound) Run

Run runs the test.

type RandaoReferenceSigning

type RandaoReferenceSigning struct {
}

RandaoReferenceSigning tests sign proposal endpoint.

func (*RandaoReferenceSigning) Name

func (test *RandaoReferenceSigning) Name() string

Name returns the name of the test. tested against a block and sig generated from https://github.com/prysmaticlabs/prysm/blob/master/shared/testutil/block.go#L86

func (*RandaoReferenceSigning) Run

func (test *RandaoReferenceSigning) Run(t *testing.T)

Run run the test.

type SlashingStorageRead

type SlashingStorageRead struct {
	BlockVersion spec.DataVersion
}

SlashingStorageRead tests slashing storage reading endpoint.

func (*SlashingStorageRead) Name

func (test *SlashingStorageRead) Name() string

Name returns the name of the test.

func (*SlashingStorageRead) Run

func (test *SlashingStorageRead) Run(t *testing.T)

Run run the test.

type TestData added in v1.6.2

type TestData struct {
	PrivKey     string
	PubKey      string
	Domain      string
	ExpectedSig string
}

type VoluntaryExitSigning added in v1.6.0

type VoluntaryExitSigning struct {
}

VoluntaryExitSigning tests sign voluntary exit endpoint.

func (*VoluntaryExitSigning) Name added in v1.6.0

func (test *VoluntaryExitSigning) Name() string

Name returns the name of the test.

func (*VoluntaryExitSigning) Run added in v1.6.0

func (test *VoluntaryExitSigning) Run(t *testing.T)

Run run the test.

type VoluntaryExitSigningAccountNotFound added in v1.6.0

type VoluntaryExitSigningAccountNotFound struct {
}

VoluntaryExitSigningAccountNotFound tests sign voluntary exit when account not found

func (*VoluntaryExitSigningAccountNotFound) Name added in v1.6.0

Name returns the name of the test

func (*VoluntaryExitSigningAccountNotFound) Run added in v1.6.0

Run runs the test.

Jump to

Keyboard shortcuts

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