MCPcopy Create free account
hub / github.com/docker/docker-agent / TestAddError_NotFound

Function TestAddError_NotFound

pkg/session/store_test.go:955–961  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

953}
954
955func TestAddError_NotFound(t *testing.T) {
956 t.Parallel()
957
958 store := NewInMemorySessionStore()
959 err := store.AddError(t.Context(), "missing", &Error{Message: "boom"})
960 require.ErrorIs(t, err, ErrNotFound)
961}
962
963func TestIsRelativeSessionRef(t *testing.T) {
964 t.Parallel()

Callers

nothing calls this directly

Calls 3

AddErrorMethod · 0.95
NewInMemorySessionStoreFunction · 0.85
ContextMethod · 0.80

Tested by

no test coverage detected