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

Function Test_VersionCommand

plugins/pass/commands/command_test.go:37–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35}
36
37func Test_VersionCommand(t *testing.T) {
38 t.Parallel()
39 out, err := execute(t, VersionCommand(mockInfo), nil)
40 assert.NoError(t, err)
41 assert.Equal(t, "Version: v88\nCommit: abc\n", out)
42}
43
44func Test_SetCommand(t *testing.T) {
45 t.Parallel()

Callers

nothing calls this directly

Calls 2

executeFunction · 0.85
VersionCommandFunction · 0.85

Tested by

no test coverage detected