MCPcopy Index your code
hub / github.com/docker/docker-agent / TestNewRequiresAgentSource

Function TestNewRequiresAgentSource

pkg/embeddedchat/embeddedchat_test.go:36–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestNewRequiresAgentSource(t *testing.T) {
37 t.Parallel()
38 s, err := New(t.Context(), Config{})
39 require.Nil(t, s)
40 require.ErrorIs(t, err, ErrAgentSourceRequired)
41}
42
43type fakeRuntime struct {
44 events chan dagentruntime.Event

Callers

nothing calls this directly

Calls 2

ContextMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected