Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 9fa58ee

Browse files
committed
Remove #[path = "..."] mod workaround for tests
1 parent ebd520d commit 9fa58ee

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

tests/support/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ use std::sync::{Arc, Mutex};
2121
use std::thread;
2222
use std::time::{Duration, Instant};
2323

24-
// FIXME(move unit tests here): Right now the modules are organized as follows:
25-
// support/mod.rs -> project_builder.rs -> paths.rs.
26-
// This is done so that the main binary can directly pull in project_builder.rs
27-
// to not duplicate logic and use it for generating data for project unit tests.
2824
pub mod project_builder;
25+
pub mod paths;
2926

3027
/// Parse valid LSP stdout into a list of json messages
3128
pub fn parse_messages(stdout: &str) -> Vec<String> {

tests/support/project_builder.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ use std::path::{Path, PathBuf};
99
use std::fs;
1010
use std::io::{Write};
1111

12-
use self::paths::TestPathExt;
13-
14-
// Modules are organized: support/mod.rs -> project_builder.rs -> paths.rs,
15-
// see note in support.mod.rs
16-
#[path = "paths.rs"]
17-
mod paths;
12+
use super::paths::{self, TestPathExt};
1813

1914
#[derive(PartialEq, Clone)]
2015
struct FileBuilder {

0 commit comments

Comments
 (0)