Skip to content

Commit

Permalink
use _mock suffix for mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
3vilhamster committed Oct 31, 2024
1 parent 0101319 commit 4bc9f81
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ codecov:
ignore:
- "**/*_generated.go"
- "**/*_mock.go"
- "**/mock_*.go"
- "**/testdata/**"
- "**/*_test.go"
- "**/*_testsuite.go"
Expand Down
2 changes: 1 addition & 1 deletion internal/internal_public.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
s "go.uber.org/cadence/.gen/go/shared"
)

//go:generate mockery --name WorkflowTaskHandler --inpackage --with-expecter --case snake --boilerplate-file ../LICENSE
//go:generate mockery --name WorkflowTaskHandler --inpackage --with-expecter --case snake --filename internal_workflow_task_handler_mock.go --boilerplate-file ../LICENSE

type (
decisionHeartbeatFunc func(response interface{}, startTime time.Time) (*workflowTask, error)
Expand Down
2 changes: 1 addition & 1 deletion internal/internal_task_pollers.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import (
"go.uber.org/cadence/internal/common/serializer"
)

//go:generate mockery --name localDispatcher --inpackage --with-expecter --case snake --boilerplate-file ../LICENSE
//go:generate mockery --name localDispatcher --inpackage --with-expecter --case snake --filename local_dispatcher_mock.go --boilerplate-file ../LICENSE

const (
pollTaskServiceTimeOut = 150 * time.Second // Server long poll is 2 * Minutes + delta
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 4bc9f81

Please sign in to comment.