Skip to content

Commit

Permalink
Generated moc clients
Browse files Browse the repository at this point in the history
Signed-off-by: Alok Kumar Singh <[email protected]>
  • Loading branch information
akstron committed Dec 9, 2024
1 parent 2e23786 commit 15bd0e0
Show file tree
Hide file tree
Showing 6 changed files with 494 additions and 122 deletions.
2 changes: 1 addition & 1 deletion idl
2 changes: 1 addition & 1 deletion jaeger-ui
4 changes: 4 additions & 0 deletions plugin/storage/grpc/shared/grpc_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type grpcClientTest struct {
capabilities *grpcMocks.PluginCapabilitiesClient
depsReader *grpcMocks.DependenciesReaderPluginClient
streamWriter *grpcMocks.StreamingSpanWriterPluginClient
samplingStore *grpcMocks.SamplingStorePluginClient
}

func withGRPCClient(fn func(r *grpcClientTest)) {
Expand All @@ -78,6 +79,7 @@ func withGRPCClient(fn func(r *grpcClientTest)) {
depReader := new(grpcMocks.DependenciesReaderPluginClient)
streamWriter := new(grpcMocks.StreamingSpanWriterPluginClient)
capabilities := new(grpcMocks.PluginCapabilitiesClient)
samplingStore := new(grpcMocks.SamplingStorePluginClient)

r := &grpcClientTest{
client: &GRPCClient{
Expand All @@ -88,6 +90,7 @@ func withGRPCClient(fn func(r *grpcClientTest)) {
capabilitiesClient: capabilities,
depsReaderClient: depReader,
streamWriterClient: streamWriter,
samplingStoreClient: samplingStore,
},
spanReader: spanReader,
spanWriter: spanWriter,
Expand All @@ -96,6 +99,7 @@ func withGRPCClient(fn func(r *grpcClientTest)) {
depsReader: depReader,
capabilities: capabilities,
streamWriter: streamWriter,
samplingStore: samplingStore,
}
fn(r)
}
Expand Down
Loading

0 comments on commit 15bd0e0

Please sign in to comment.