(_ context.Context, _ *connect.Request[healthv1.GetVersionRequest])
| 46 | } |
| 47 | |
| 48 | func (m mockVersionService) GetVersion(_ context.Context, _ *connect.Request[healthv1.GetVersionRequest]) (*connect.Response[healthv1.GetVersionResponse], error) { |
| 49 | return connect.NewResponse(healthv1.GetVersionResponse_builder{ |
| 50 | Version: proto.String(m.version), |
| 51 | Date: proto.String(m.date), |
| 52 | CommitHash: proto.String(m.commitHash), |
| 53 | }.Build()), nil |
| 54 | } |
| 55 | |
| 56 | func mockVersionEngine(t *testing.T, version, date, commitHash string) string { |
| 57 | t.Helper() |