MCPcopy
hub / github.com/grafana/tempo / TestHandleTraceQLDocs

Function TestHandleTraceQLDocs

modules/frontend/mcp_tools_test.go:438–451  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

436}
437
438func TestHandleTraceQLDocs(t *testing.T) {
439 server := &MCPServer{
440 logger: log.NewNopLogger(),
441 }
442
443 ctx := context.Background()
444 request := callToolRequest(map[string]any{})
445
446 result, err := server.handleTraceQLDocs(ctx, request)
447
448 require.NoError(t, err)
449 require.NotNil(t, result)
450 require.NotEmpty(t, result.Content)
451}
452
453func TestAcceptHeaderIsSet(t *testing.T) {
454 tests := []struct {

Callers

nothing calls this directly

Calls 2

handleTraceQLDocsMethod · 0.95
callToolRequestFunction · 0.85

Tested by

no test coverage detected