MCPcopy Create free account
hub / github.com/astral-sh/ruff / invalid_syntax

Function invalid_syntax

crates/ruff_python_parser/tests/fixtures.rs:26–29  ·  view source on GitHub ↗
(path: &Utf8Path, content: String)

Source from the content-addressed store, hash-verified

24
25#[expect(clippy::needless_pass_by_value, clippy::unnecessary_wraps)]
26fn invalid_syntax(path: &Utf8Path, content: String) -> datatest_stable::Result<()> {
27 test_invalid_syntax(path, &content, "./resources/invalid");
28 Ok(())
29}
30
31#[expect(clippy::needless_pass_by_value, clippy::unnecessary_wraps)]
32fn inline_ok(path: &Utf8Path, content: String) -> datatest_stable::Result<()> {

Callers 7

check_typesFunction · 0.85
check_fileFunction · 0.85
diagnostics_to_messagesFunction · 0.85
test_contentsFunction · 0.85
print_syntax_errorsFunction · 0.85

Calls 2

test_invalid_syntaxFunction · 0.85
OkClass · 0.85

Tested by

no test coverage detected