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

Function TestPrependAgentRef

cmd/root/agent_picker_test.go:109–115  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

107}
108
109func TestPrependAgentRef(t *testing.T) {
110 t.Parallel()
111
112 assert.Equal(t, []string{"coder"}, prependAgentRef("coder", nil))
113 assert.Equal(t, []string{"coder", "hello"}, prependAgentRef("coder", []string{"hello"}))
114 assert.Equal(t, []string{"coder", "a", "b"}, prependAgentRef("coder", []string{"a", "b"}))
115}
116
117func TestIsLocalConfigRef(t *testing.T) {
118 t.Parallel()

Callers

nothing calls this directly

Calls 1

prependAgentRefFunction · 0.85

Tested by

no test coverage detected