{"modulePath":"github.com/onflow/flow-go","version":"v0.51.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package mock\n\n## Types\n\n```go\ntype Core struct {\n\tmock.Mock\n}\n```\nCore is an autogenerated mock type for the Core type\n\n```go\nfunc NewCore(t interface {\n\tmock.TestingT\n\tCleanup(func())\n}) *Core\n```\nNewCore creates a new instance of Core. 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.\n\n```go\nfunc (_mock *Core) Abandon()\n```\nAbandon provides a mock function for the type Core\n\n```go\nfunc (_mock *Core) Download(ctx context.Context) error\n```\nDownload provides a mock function for the type Core\n\n```go\nfunc (_m *Core) EXPECT() *Core_Expecter\n```\n\n```go\nfunc (_mock *Core) Index() error\n```\nIndex provides a mock function for the type Core\n\n```go\nfunc (_mock *Core) Persist() error\n```\nPersist provides a mock function for the type Core\n\n```go\ntype Core_Abandon_Call struct {\n\t*mock.Call\n}\n```\nCore\\_Abandon\\_Call is a \\*mock.Call that shadows Run/Return methods with type explicit version for method 'Abandon'\n\n```go\nfunc (_c *Core_Abandon_Call) Return() *Core_Abandon_Call\n```\n\n```go\nfunc (_c *Core_Abandon_Call) Run(run func()) *Core_Abandon_Call\n```\n\n```go\nfunc (_c *Core_Abandon_Call) RunAndReturn(run func()) *Core_Abandon_Call\n```\n\n```go\ntype Core_Download_Call struct {\n\t*mock.Call\n}\n```\nCore\\_Download\\_Call is a \\*mock.Call that shadows Run/Return methods with type explicit version for method 'Download'\n\n```go\nfunc (_c *Core_Download_Call) Return(err error) *Core_Download_Call\n```\n\n```go\nfunc (_c *Core_Download_Call) Run(run func(ctx context.Context)) *Core_Download_Call\n```\n\n```go\nfunc (_c *Core_Download_Call) RunAndReturn(run func(ctx context.Context) error) *Core_Download_Call\n```\n\n```go\ntype Core_Expecter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (_e *Core_Expecter) Abandon() *Core_Abandon_Call\n```\nAbandon is a helper method to define mock.On call\n\n```go\nfunc (_e *Core_Expecter) Download(ctx interface{}) *Core_Download_Call\n```\nDownload is a helper method to define mock.On call\n\n  - ctx context.Context\n\n```go\nfunc (_e *Core_Expecter) Index() *Core_Index_Call\n```\nIndex is a helper method to define mock.On call\n\n```go\nfunc (_e *Core_Expecter) Persist() *Core_Persist_Call\n```\nPersist is a helper method to define mock.On call\n\n```go\ntype Core_Index_Call struct {\n\t*mock.Call\n}\n```\nCore\\_Index\\_Call is a \\*mock.Call that shadows Run/Return methods with type explicit version for method 'Index'\n\n```go\nfunc (_c *Core_Index_Call) Return(err error) *Core_Index_Call\n```\n\n```go\nfunc (_c *Core_Index_Call) Run(run func()) *Core_Index_Call\n```\n\n```go\nfunc (_c *Core_Index_Call) RunAndReturn(run func() error) *Core_Index_Call\n```\n\n```go\ntype Core_Persist_Call struct {\n\t*mock.Call\n}\n```\nCore\\_Persist\\_Call is a \\*mock.Call that shadows Run/Return methods with type explicit version for method 'Persist'\n\n```go\nfunc (_c *Core_Persist_Call) Return(err error) *Core_Persist_Call\n```\n\n```go\nfunc (_c *Core_Persist_Call) Run(run func()) *Core_Persist_Call\n```\n\n```go\nfunc (_c *Core_Persist_Call) RunAndReturn(run func() error) *Core_Persist_Call\n```\n\n","path":"github.com/onflow/flow-go/module/executiondatasync/optimistic_sync/mock","name":"mock","synopsis":"","isRedistributable":true}
