Skip to content

Commit

Permalink
Generate Mocks For New Interface
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <[email protected]>
  • Loading branch information
mahadzaryab1 committed Dec 6, 2024
1 parent e395f52 commit d07eebc
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,6 @@ packages:
github.com/jaegertracing/jaeger/storage_v2/tracestore:
config:
all: true
github.com/jaegertracing/jaeger/storage_v2/depstore:
config:
all: true
100 changes: 100 additions & 0 deletions storage_v2/depstore/mocks/Factory.go

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

66 changes: 66 additions & 0 deletions storage_v2/depstore/mocks/Reader.go

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

3 changes: 2 additions & 1 deletion storage_v2/factoryadapter/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func NewDependencyReader(reader dependencystore.Reader) *DependencyReader {

func (dr *DependencyReader) GetDependencies(
ctx context.Context,
query depstore.QueryParameters) ([]model.DependencyLink, error) {
query depstore.QueryParameters,
) ([]model.DependencyLink, error) {
return dr.reader.GetDependencies(ctx, query.EndTime, query.EndTime.Sub(query.StartTime))
}

0 comments on commit d07eebc

Please sign in to comment.