MCPcopy Create free account
hub / github.com/docker/secrets-engine / GetVersion

Method GetVersion

client/client_test.go:48–54  ·  view source on GitHub ↗
(_ context.Context, _ *connect.Request[healthv1.GetVersionRequest])

Source from the content-addressed store, hash-verified

46}
47
48func (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
56func mockVersionEngine(t *testing.T, version, date, commitHash string) string {
57 t.Helper()

Callers

nothing calls this directly

Calls 2

StringMethod · 0.65
BuildMethod · 0.45

Tested by

no test coverage detected