| 35 | var _ status.Status |
| 36 | |
| 37 | type mockKeyManagementServer struct { |
| 38 | // Embed for forward compatibility. |
| 39 | // Tests will keep working if more methods are added |
| 40 | // in the future. |
| 41 | kmspb.KeyManagementServiceServer |
| 42 | |
| 43 | reqs []proto.Message |
| 44 | |
| 45 | // If set, all calls return this error. |
| 46 | err error |
| 47 | |
| 48 | // responses to return if err == nil |
| 49 | resps []proto.Message |
| 50 | } |
| 51 | |
| 52 | func (s *mockKeyManagementServer) ListKeyRings(ctx context.Context, req *kmspb.ListKeyRingsRequest) (*kmspb.ListKeyRingsResponse, error) { |
| 53 | md, _ := metadata.FromIncomingContext(ctx) |
nothing calls this directly
no outgoing calls
no test coverage detected