MCPcopy Create free account
hub / github.com/containers/common / TestList

Function TestList

pkg/secrets/shelldriver/shelldriver_test.go:125–135  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

123}
124
125func TestList(t *testing.T) {
126 driver, cleanup := setupDriver(t)
127 defer cleanup()
128 require.NoError(t, driver.Store("a", []byte("abc")))
129 require.NoError(t, driver.Store("b", []byte("abc")))
130 require.NoError(t, driver.Store("c", []byte("abc")))
131
132 list, err := driver.List()
133 require.NoError(t, err)
134 require.Equal(t, []string{"a", "b", "c"}, list)
135}
136
137func TestDelete(t *testing.T) {
138 driver, cleanup := setupDriver(t)

Callers

nothing calls this directly

Calls 4

setupDriverFunction · 0.70
StoreMethod · 0.65
ListMethod · 0.65
cleanupFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…