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

Function TestWithInstructions_add

pkg/teamloader/instructions_test.go:41–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

39}
40
41func TestWithInstructions_add(t *testing.T) {
42 t.Parallel()
43 inner := &toolSet{
44 instruction: "Existing instructions",
45 }
46
47 wrapped := WithInstructions(inner, "{ORIGINAL_INSTRUCTIONS}\nMore instructions")
48
49 assert.Equal(t, "Existing instructions\nMore instructions", tools.GetInstructions(wrapped))
50}

Callers

nothing calls this directly

Calls 2

GetInstructionsFunction · 0.92
WithInstructionsFunction · 0.85

Tested by

no test coverage detected