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

Function TestWithInstructions_replace

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

Source from the content-addressed store, hash-verified

28}
29
30func TestWithInstructions_replace(t *testing.T) {
31 t.Parallel()
32 inner := &toolSet{
33 instruction: "Existing instructions",
34 }
35
36 wrapped := WithInstructions(inner, "New instructions")
37
38 assert.Equal(t, "New instructions", tools.GetInstructions(wrapped))
39}
40
41func TestWithInstructions_add(t *testing.T) {
42 t.Parallel()

Callers

nothing calls this directly

Calls 2

GetInstructionsFunction · 0.92
WithInstructionsFunction · 0.85

Tested by

no test coverage detected