Repository navigation
test: rename legacy test.rs and *_test.rs files to *_tests.rs #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,4 +45,5 @@ pub use types::{ | |
| }; | ||
|
|
||
| #[cfg(test)] | ||
| #[path = "mod_tests.rs"] | ||
| mod test; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -288,4 +288,5 @@ pub fn constant_time_eq(a: &str, b: &str) -> bool { | |
| } | ||
|
|
||
| #[cfg(test)] | ||
| #[path = "mod_tests.rs"] | ||
| mod test; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -158,4 +158,5 @@ impl ApprovalSurface { | |
| } | ||
|
|
||
| #[cfg(test)] | ||
| #[path = "mod_tests.rs"] | ||
| mod test; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,4 +27,5 @@ pub use types::{ | |
| }; | ||
|
|
||
| #[cfg(test)] | ||
| #[path = "mod_tests.rs"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
After this rename, Useful? React with 👍 / 👎. |
||
| mod test; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,4 +13,5 @@ pub use types::{ | |
| }; | ||
|
|
||
| #[cfg(test)] | ||
| #[path = "mod_tests.rs"] | ||
| mod test; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,4 +37,5 @@ pub use websocket::{ | |
| }; | ||
|
|
||
| #[cfg(test)] | ||
| #[path = "mod_tests.rs"] | ||
| mod test; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -329,4 +329,5 @@ async fn new_session( | |
| } | ||
|
|
||
| #[cfg(test)] | ||
| #[path = "mod_tests.rs"] | ||
| mod test; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When externalizing these suites, this file—and the migrated
src/delivery/mod_tests.rs,src/harness/mod_tests.rs, andsrc/relay/mod_tests.rsfiles—omitsuse super::*;entirely and instead imports the module API through crate paths. The repository explicitly requires sibling unit-test files to start with the parent glob import, so normalize these migrated files as part of the rename.AGENTS.md reference: AGENTS.md:L140-L142
Useful? React with 👍 / 👎.