bolt/deps/llvm-18.1.8/clang-tools-extra/clangd/test/metrics.test

12 lines
571 B
Text
Raw Normal View History

2025-02-14 19:21:04 +01:00
# RUN: env CLANGD_METRICS=%t clangd -lit-test < %s && FileCheck %s < %t
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
---
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///foo.c","languageId":"c","version":1,"text":"void main() {}"}}}
# Don't verify value, timestamp, or order.
# CHECK-DAG: d,lsp_latency,textDocument/didOpen,
# CHECK-DAG: c,ast_access_diag,miss,
---
{"jsonrpc":"2.0","id":5,"method":"shutdown"}
---
{"jsonrpc":"2.0","method":"exit"}