Skip to content

Commit c3429bb

Browse files
committed
progress
1 parent ccd7e74 commit c3429bb

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

crates/pgt_workspace/src/features/completions.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ pub(crate) fn get_statement_for_completions(
7676

7777
#[cfg(test)]
7878
mod tests {
79-
use pgt_fs::PgTPath;
8079
use pgt_text_size::TextSize;
8180

8281
use crate::workspace::Document;
@@ -93,11 +92,7 @@ mod tests {
9392
let pos: u32 = pos.try_into().unwrap();
9493

9594
(
96-
Document::new(
97-
PgTPath::new("test.sql"),
98-
sql.replace(CURSOR_POSITION, ""),
99-
5,
100-
),
95+
Document::new(sql.replace(CURSOR_POSITION, ""), 5),
10196
TextSize::new(pos),
10297
)
10398
}

crates/pgt_workspace/src/workspace/server/annotation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ mod tests {
7676
("SELECT * FROM foo\n", false),
7777
];
7878

79-
for (idx, (content, expected)) in test_cases.iter().enumerate() {
80-
let statement_id = StatementId::Root(idx.into());
79+
for (content, expected) in test_cases.iter() {
80+
let statement_id = StatementId::new(content);
8181

8282
let annotations = store.get_annotations(&statement_id, content);
8383

0 commit comments

Comments
 (0)