MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / unclosed_single_quoted_string

Function unclosed_single_quoted_string

src/parser/error_format.rs:399–404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397
398 #[test]
399 fn unclosed_single_quoted_string() {
400 use mago_syntax::ast::LiteralStringKind;
401 let err = ParseError::UnclosedLiteralString(LiteralStringKind::SingleQuoted, span(5, 20));
402 let msg = format_parse_error(&err);
403 assert_eq!(msg, "Syntax error: unclosed single-quoted string");
404 }
405
406 #[test]
407 fn unclosed_double_quoted_string() {

Callers

nothing calls this directly

Calls 2

spanFunction · 0.85
format_parse_errorFunction · 0.85

Tested by

no test coverage detected