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

Function TestResolve_CoderBuiltinAgent

pkg/config/resolve_test.go:322–333  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

320}
321
322func TestResolve_CoderBuiltinAgent(t *testing.T) {
323 t.Parallel()
324
325 source, err := Resolve("coder", nil)
326 require.NoError(t, err)
327 assert.Equal(t, "coder", source.Name())
328
329 // Verify it reads the embedded coder agent config
330 data, err := source.Read(t.Context())
331 require.NoError(t, err)
332 assert.Contains(t, string(data), "Coding Agent")
333}
334
335func TestBuiltinAgentNames(t *testing.T) {
336 t.Parallel()

Callers

nothing calls this directly

Calls 4

ContextMethod · 0.80
ResolveFunction · 0.70
NameMethod · 0.65
ReadMethod · 0.65

Tested by

no test coverage detected