Skip to content

Commit

Permalink
refactor: rename Execute to Executor (#29)
Browse files Browse the repository at this point in the history
* refactor: rename Execute interface to Executor

* test: rename types to ExecutorSuite and DummyExecutor

* test: rename mock `Execute` to `Executor`

Renamed the mock structure from `MockExecute` to `MockExecutor` and updated related test instances and Makefile accordingly. This improves clarity and consistency in naming conventions.
  • Loading branch information
tzdybal authored Nov 7, 2024
1 parent 7810bc1 commit fb41c8d
Show file tree
Hide file tree
Showing 14 changed files with 311 additions and 310 deletions.
2 changes: 1 addition & 1 deletion .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ with-expecter: true
packages:
github.com/rollkit/go-execution:
interfaces:
Execute:
Executor:
config:
dir: mocks
outpkg: mocks
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ proto-lint: check-proto-deps
.PHONY: proto-lint

## mock-gen: Re-generates DA mock
mock-gen: mocks/Execute.go
mock-gen: mocks/mock_Executor.go
.PHONY: mock-gen

mocks/Execute.go: execution.go .mockery.yaml
mocks/mock_Executor.go: execution.go .mockery.yaml
@mockery
4 changes: 2 additions & 2 deletions execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/rollkit/go-execution/types"
)

// Execute defines a common interface for interacting with the execution client.
type Execute interface {
// Executor defines a common interface for interacting with the execution client.
type Executor interface {
// InitChain initializes the blockchain with genesis information.
InitChain(
genesisTime time.Time,
Expand Down
276 changes: 0 additions & 276 deletions mocks/mock_Execute.go

This file was deleted.

Loading

0 comments on commit fb41c8d

Please sign in to comment.