MCPcopy
hub / github.com/kagent-dev/kagent / assertSingleHeader

Function assertSingleHeader

go/adk/pkg/tools/remote_a2a_tool_test.go:117–126  ·  view source on GitHub ↗
(t *testing.T, req *a2aclient.Request, key, want string)

Source from the content-addressed store, hash-verified

115}
116
117func assertSingleHeader(t *testing.T, req *a2aclient.Request, key, want string) {
118 t.Helper()
119 got := req.Meta.Get(key)
120 if len(got) != 1 {
121 t.Fatalf("%s: expected exactly 1 value, got %v", key, got)
122 }
123 if got[0] != want {
124 t.Errorf("%s: got %q, want %q", key, got[0], want)
125 }
126}

Callers 1

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected