MCPcopy Index your code
hub / github.com/github/copilot-sdk / TestSystemMessageForMode_emptyModePreservesReplace

Function TestSystemMessageForMode_emptyModePreservesReplace

go/toolset_test.go:191–198  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

189}
190
191func TestSystemMessageForMode_emptyModePreservesReplace(t *testing.T) {
192 c := NewClient(&ClientOptions{Mode: ModeEmpty, BaseDirectory: t.TempDir()})
193 in := &SystemMessageConfig{Mode: "replace", Content: "whole prompt"}
194 got := c.systemMessageForMode(in)
195 if got != in {
196 t.Errorf("expected verbatim passthrough for replace, got %+v", got)
197 }
198}
199
200func TestSystemMessageForMode_emptyModeRespectsCallerSection(t *testing.T) {
201 c := NewClient(&ClientOptions{Mode: ModeEmpty, BaseDirectory: t.TempDir()})

Callers

nothing calls this directly

Calls 2

systemMessageForModeMethod · 0.95
NewClientFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…