Skip to content

Commit

Permalink
Regenerate mocks (#5821)
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?
- Resolves #5818 

## Description of the changes
- Generate mocked interfaces in `plugin/storage/grpc/shared/mocks`
instead of `plugin/storage/grpc/mocks`

## How was this change tested?
- `make test`

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [ ] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `yarn lint` and `yarn test`

---------

Signed-off-by: Kaung Zin Hein <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>
  • Loading branch information
Zen-cronic and yurishkuro authored Aug 11, 2024
1 parent 666c208 commit f1db79c
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ packages:
github.com/jaegertracing/jaeger/plugin/sampling/leaderelection:
config:
all: true
github.com/jaegertracing/jaeger/plugin/storage/grpc:
github.com/jaegertracing/jaeger/plugin/storage/grpc/shared:
interfaces:
PluginCapabilities:
github.com/jaegertracing/jaeger/plugin/storage/kafka:
Expand Down
2 changes: 1 addition & 1 deletion plugin/storage/grpc/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import (

"github.com/jaegertracing/jaeger/pkg/config"
"github.com/jaegertracing/jaeger/pkg/metrics"
"github.com/jaegertracing/jaeger/plugin/storage/grpc/mocks"
"github.com/jaegertracing/jaeger/plugin/storage/grpc/shared"
"github.com/jaegertracing/jaeger/plugin/storage/grpc/shared/mocks"
"github.com/jaegertracing/jaeger/storage"
"github.com/jaegertracing/jaeger/storage/dependencystore"
dependencyStoreMocks "github.com/jaegertracing/jaeger/storage/dependencystore/mocks"
Expand Down
51 changes: 0 additions & 51 deletions plugin/storage/grpc/mocks/PluginCapabilities.go

This file was deleted.

62 changes: 62 additions & 0 deletions plugin/storage/grpc/shared/mocks/PluginCapabilities.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f1db79c

Please sign in to comment.