use grpctestify::lsp;
#[test]
fn test_build_semantic_tokens_section_headers() {
let content = "--- ENDPOINT ---\ntest.Service/Method\n";
let tokens = lsp::build_semantic_tokens(content);
if !tokens.data.is_empty() {
assert_eq!(tokens.data[0].token_type, 0); }
}
#[test]
fn test_build_semantic_tokens_error_with_inline_options() {
let content = r#"--- ENDPOINT ---
test.Service/Method
--- REQUEST ---
{}
--- ERROR partial=true with_asserts=true ---
{
"code": 5
}
--- ASSERTS ---
.code == 5
"#;
let tokens = lsp::build_semantic_tokens(content);
assert!(
!tokens.data.is_empty(),
"Expected semantic tokens for ERROR with inline options"
);
}