(t *testing.T)
| 54 | } |
| 55 | |
| 56 | func TestA2AServer_AgentCard(t *testing.T) { |
| 57 | t.Parallel() |
| 58 | |
| 59 | _, runConfig := startRecordingAIProxy(t) |
| 60 | agentCard := startA2AServer(t, "testdata/basic.yaml", runConfig) |
| 61 | |
| 62 | assert.Equal(t, "basic", agentCard.Name) |
| 63 | assert.NotEmpty(t, agentCard.Description) |
| 64 | assert.Equal(t, a2a.TransportProtocolJSONRPC, agentCard.PreferredTransport) |
| 65 | assert.Contains(t, agentCard.URL, "/invoke") |
| 66 | assert.True(t, agentCard.Capabilities.Streaming) |
| 67 | assert.NotEmpty(t, agentCard.Version) |
| 68 | } |
| 69 | |
| 70 | func TestA2AServer_Invoke(t *testing.T) { |
| 71 | t.Parallel() |
nothing calls this directly
no test coverage detected