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

Function TestGetMessages_Instructions

pkg/session/session_test.go:178–189  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

176}
177
178func TestGetMessages_Instructions(t *testing.T) {
179 t.Parallel()
180
181 testAgent := agent.New("root", "instructions")
182
183 s := New()
184 messages := s.GetMessages(testAgent)
185
186 assert.Len(t, messages, 1)
187 assert.Equal(t, "instructions", messages[0].Content)
188 assert.True(t, messages[0].CacheControl)
189}
190
191func TestGetMessages_CacheControl(t *testing.T) {
192 t.Parallel()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.92
GetMessagesMethod · 0.80
NewFunction · 0.70
LenMethod · 0.65

Tested by

no test coverage detected