mocks

package
v0.9.0 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: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDA

type MockDA struct {
	mock.Mock
}

MockDA is an autogenerated mock type for the DA type

func NewMockDA

func NewMockDA(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDA

NewMockDA creates a new instance of MockDA. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockDA) Commit

func (_m *MockDA) Commit(ctx context.Context, blobs [][]byte, namespace []byte) ([][]byte, error)

Commit provides a mock function with given fields: ctx, blobs, namespace

func (*MockDA) EXPECT

func (_m *MockDA) EXPECT() *MockDA_Expecter

func (*MockDA) Get

func (_m *MockDA) Get(ctx context.Context, ids [][]byte, namespace []byte) ([][]byte, error)

Get provides a mock function with given fields: ctx, ids, namespace

func (*MockDA) GetIDs

func (_m *MockDA) GetIDs(ctx context.Context, height uint64, namespace []byte) (*da.GetIDsResult, error)

GetIDs provides a mock function with given fields: ctx, height, namespace

func (*MockDA) GetProofs

func (_m *MockDA) GetProofs(ctx context.Context, ids [][]byte, namespace []byte) ([][]byte, error)

GetProofs provides a mock function with given fields: ctx, ids, namespace

func (*MockDA) MaxBlobSize

func (_m *MockDA) MaxBlobSize(ctx context.Context) (uint64, error)

MaxBlobSize provides a mock function with given fields: ctx

func (*MockDA) Submit

func (_m *MockDA) Submit(ctx context.Context, blobs [][]byte, gasPrice float64, namespace []byte) ([][]byte, error)

Submit provides a mock function with given fields: ctx, blobs, gasPrice, namespace

func (*MockDA) SubmitWithOptions

func (_m *MockDA) SubmitWithOptions(ctx context.Context, blobs [][]byte, gasPrice float64, namespace []byte, options []byte) ([][]byte, error)

SubmitWithOptions provides a mock function with given fields: ctx, blobs, gasPrice, namespace, options

func (*MockDA) Validate

func (_m *MockDA) Validate(ctx context.Context, ids [][]byte, proofs [][]byte, namespace []byte) ([]bool, error)

Validate provides a mock function with given fields: ctx, ids, proofs, namespace

type MockDA_Commit_Call

type MockDA_Commit_Call struct {
	*mock.Call
}

MockDA_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'

func (*MockDA_Commit_Call) Return

func (_c *MockDA_Commit_Call) Return(_a0 [][]byte, _a1 error) *MockDA_Commit_Call

func (*MockDA_Commit_Call) Run

func (_c *MockDA_Commit_Call) Run(run func(ctx context.Context, blobs [][]byte, namespace []byte)) *MockDA_Commit_Call

func (*MockDA_Commit_Call) RunAndReturn

func (_c *MockDA_Commit_Call) RunAndReturn(run func(context.Context, [][]byte, []byte) ([][]byte, error)) *MockDA_Commit_Call

type MockDA_Expecter

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

func (*MockDA_Expecter) Commit

func (_e *MockDA_Expecter) Commit(ctx interface{}, blobs interface{}, namespace interface{}) *MockDA_Commit_Call

Commit is a helper method to define mock.On call

  • ctx context.Context
  • blobs [][]byte
  • namespace []byte

func (*MockDA_Expecter) Get

func (_e *MockDA_Expecter) Get(ctx interface{}, ids interface{}, namespace interface{}) *MockDA_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • ids [][]byte
  • namespace []byte

func (*MockDA_Expecter) GetIDs

func (_e *MockDA_Expecter) GetIDs(ctx interface{}, height interface{}, namespace interface{}) *MockDA_GetIDs_Call

GetIDs is a helper method to define mock.On call

  • ctx context.Context
  • height uint64
  • namespace []byte

func (*MockDA_Expecter) GetProofs

func (_e *MockDA_Expecter) GetProofs(ctx interface{}, ids interface{}, namespace interface{}) *MockDA_GetProofs_Call

GetProofs is a helper method to define mock.On call

  • ctx context.Context
  • ids [][]byte
  • namespace []byte

func (*MockDA_Expecter) MaxBlobSize

func (_e *MockDA_Expecter) MaxBlobSize(ctx interface{}) *MockDA_MaxBlobSize_Call

MaxBlobSize is a helper method to define mock.On call

  • ctx context.Context

func (*MockDA_Expecter) Submit

func (_e *MockDA_Expecter) Submit(ctx interface{}, blobs interface{}, gasPrice interface{}, namespace interface{}) *MockDA_Submit_Call

Submit is a helper method to define mock.On call

  • ctx context.Context
  • blobs [][]byte
  • gasPrice float64
  • namespace []byte

func (*MockDA_Expecter) SubmitWithOptions

func (_e *MockDA_Expecter) SubmitWithOptions(ctx interface{}, blobs interface{}, gasPrice interface{}, namespace interface{}, options interface{}) *MockDA_SubmitWithOptions_Call

SubmitWithOptions is a helper method to define mock.On call

  • ctx context.Context
  • blobs [][]byte
  • gasPrice float64
  • namespace []byte
  • options []byte

func (*MockDA_Expecter) Validate

func (_e *MockDA_Expecter) Validate(ctx interface{}, ids interface{}, proofs interface{}, namespace interface{}) *MockDA_Validate_Call

Validate is a helper method to define mock.On call

  • ctx context.Context
  • ids [][]byte
  • proofs [][]byte
  • namespace []byte

type MockDA_GetIDs_Call

type MockDA_GetIDs_Call struct {
	*mock.Call
}

MockDA_GetIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIDs'

func (*MockDA_GetIDs_Call) Return

func (*MockDA_GetIDs_Call) Run

func (_c *MockDA_GetIDs_Call) Run(run func(ctx context.Context, height uint64, namespace []byte)) *MockDA_GetIDs_Call

func (*MockDA_GetIDs_Call) RunAndReturn

func (_c *MockDA_GetIDs_Call) RunAndReturn(run func(context.Context, uint64, []byte) (*da.GetIDsResult, error)) *MockDA_GetIDs_Call

type MockDA_GetProofs_Call

type MockDA_GetProofs_Call struct {
	*mock.Call
}

MockDA_GetProofs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProofs'

func (*MockDA_GetProofs_Call) Return

func (_c *MockDA_GetProofs_Call) Return(_a0 [][]byte, _a1 error) *MockDA_GetProofs_Call

func (*MockDA_GetProofs_Call) Run

func (_c *MockDA_GetProofs_Call) Run(run func(ctx context.Context, ids [][]byte, namespace []byte)) *MockDA_GetProofs_Call

func (*MockDA_GetProofs_Call) RunAndReturn

func (_c *MockDA_GetProofs_Call) RunAndReturn(run func(context.Context, [][]byte, []byte) ([][]byte, error)) *MockDA_GetProofs_Call

type MockDA_Get_Call

type MockDA_Get_Call struct {
	*mock.Call
}

MockDA_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*MockDA_Get_Call) Return

func (_c *MockDA_Get_Call) Return(_a0 [][]byte, _a1 error) *MockDA_Get_Call

func (*MockDA_Get_Call) Run

func (_c *MockDA_Get_Call) Run(run func(ctx context.Context, ids [][]byte, namespace []byte)) *MockDA_Get_Call

func (*MockDA_Get_Call) RunAndReturn

func (_c *MockDA_Get_Call) RunAndReturn(run func(context.Context, [][]byte, []byte) ([][]byte, error)) *MockDA_Get_Call

type MockDA_MaxBlobSize_Call

type MockDA_MaxBlobSize_Call struct {
	*mock.Call
}

MockDA_MaxBlobSize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MaxBlobSize'

func (*MockDA_MaxBlobSize_Call) Return

func (*MockDA_MaxBlobSize_Call) Run

func (*MockDA_MaxBlobSize_Call) RunAndReturn

type MockDA_SubmitWithOptions_Call

type MockDA_SubmitWithOptions_Call struct {
	*mock.Call
}

MockDA_SubmitWithOptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubmitWithOptions'

func (*MockDA_SubmitWithOptions_Call) Return

func (*MockDA_SubmitWithOptions_Call) Run

func (_c *MockDA_SubmitWithOptions_Call) Run(run func(ctx context.Context, blobs [][]byte, gasPrice float64, namespace []byte, options []byte)) *MockDA_SubmitWithOptions_Call

func (*MockDA_SubmitWithOptions_Call) RunAndReturn

type MockDA_Submit_Call

type MockDA_Submit_Call struct {
	*mock.Call
}

MockDA_Submit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Submit'

func (*MockDA_Submit_Call) Return

func (_c *MockDA_Submit_Call) Return(_a0 [][]byte, _a1 error) *MockDA_Submit_Call

func (*MockDA_Submit_Call) Run

func (_c *MockDA_Submit_Call) Run(run func(ctx context.Context, blobs [][]byte, gasPrice float64, namespace []byte)) *MockDA_Submit_Call

func (*MockDA_Submit_Call) RunAndReturn

func (_c *MockDA_Submit_Call) RunAndReturn(run func(context.Context, [][]byte, float64, []byte) ([][]byte, error)) *MockDA_Submit_Call

type MockDA_Validate_Call

type MockDA_Validate_Call struct {
	*mock.Call
}

MockDA_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'

func (*MockDA_Validate_Call) Return

func (_c *MockDA_Validate_Call) Return(_a0 []bool, _a1 error) *MockDA_Validate_Call

func (*MockDA_Validate_Call) Run

func (_c *MockDA_Validate_Call) Run(run func(ctx context.Context, ids [][]byte, proofs [][]byte, namespace []byte)) *MockDA_Validate_Call

func (*MockDA_Validate_Call) RunAndReturn

func (_c *MockDA_Validate_Call) RunAndReturn(run func(context.Context, [][]byte, [][]byte, []byte) ([]bool, error)) *MockDA_Validate_Call

Jump to

Keyboard shortcuts

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