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

Function assertStoredMetadata

plugins/pass/commands/command_test.go:269–276  ·  view source on GitHub ↗
(t *testing.T, kc store.Store, want map[string]string)

Source from the content-addressed store, hash-verified

267}
268
269func assertStoredMetadata(t *testing.T, kc store.Store, want map[string]string) {
270 t.Helper()
271 s, err := kc.Get(t.Context(), secrets.MustParseID("foo"))
272 require.NoError(t, err)
273 impl, ok := s.(*pass.PassValue)
274 require.True(t, ok)
275 assert.Equal(t, want, impl.Metadata())
276}

Callers 1

Test_SetCommandFunction · 0.85

Calls 2

GetMethod · 0.65
MetadataMethod · 0.65

Tested by

no test coverage detected