mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-16 08:30:16 +00:00
red-knot: source_text
, line_index
, and parsed_module
queries (#11822)
This commit is contained in:
parent
efbf7b14b5
commit
d4dd96d1f4
9 changed files with 194 additions and 16 deletions
|
@ -96,11 +96,10 @@ mod tests {
|
|||
// Change the file permission only
|
||||
file.set_permissions(&mut db).to(Some(0o777));
|
||||
|
||||
db.events().lock().unwrap().clear();
|
||||
db.clear_salsa_events();
|
||||
assert_eq!(&*source_text(&db, file), "x = 10");
|
||||
|
||||
let events = db.events();
|
||||
let events = events.lock().unwrap();
|
||||
let events = db.take_salsa_events();
|
||||
|
||||
assert!(!events
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue