Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,3 @@ PRs go to the canonical upstream repository and should be ready for review.
- Integration tests stay in the crate's `tests/` directory.
- OpenHuman's `scripts/externalize-inline-tests.mjs <repo-root> --write` moves
inline test modules out mechanically; without `--write` it only reports.
- Existing `test.rs` and `<module>_test.rs` files predate this rule. Rename each
to `<module>_tests.rs` (keep its `mod` name, add the `#[path]` attribute) the
next time you touch it.
1 change: 1 addition & 0 deletions crates/tinysearch-bus/src/errors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ pub fn code_of(message: &str) -> Option<&'static str> {
}

#[cfg(test)]
#[path = "mod_tests.rs"]
mod test;
1 change: 1 addition & 0 deletions crates/tinysearch-bus/src/names/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ pub fn role_for_tool(name: &str) -> Option<Role> {
/// Members in interface dispatch order.
pub const METHODS: &[&str] = &[methods::LIST_TOOLS, methods::EXECUTE_TOOL];
#[cfg(test)]
#[path = "mod_tests.rs"]
mod test;
1 change: 1 addition & 0 deletions crates/tinysearch-bus/src/search/catalog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,4 +370,5 @@ pub fn select_tools(
}

#[cfg(test)]
#[path = "mod_tests.rs"]
mod test;
1 change: 1 addition & 0 deletions crates/tinysearch-bus/src/search/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ pub use catalog::{
};
pub use types::*;
#[cfg(test)]
#[path = "mod_tests.rs"]
mod test;
1 change: 1 addition & 0 deletions crates/tinysearch-bus/src/version/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ fn binds(host: (u32, u32), module: (u32, u32)) -> bool {
}

#[cfg(test)]
#[path = "mod_tests.rs"]
mod test;
1 change: 1 addition & 0 deletions crates/tinysearch/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ impl Error {
/// Standard result type.
pub type Result<T> = std::result::Result<T, Error>;
#[cfg(test)]
#[path = "mod_tests.rs"]
mod test;
1 change: 1 addition & 0 deletions crates/tinysearch/src/provider/direct/parallel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,5 @@ async fn async_response(
}

#[cfg(test)]
#[path = "parallel/parallel_tests.rs"]
mod test;
1 change: 1 addition & 0 deletions crates/tinysearch/src/provider/direct/tavily.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@ pub(super) fn unwrap(request: &ExecuteToolRequest, mut value: Value) -> Result<V
}

#[cfg(test)]
#[path = "tavily/tavily_tests.rs"]
mod test;
1 change: 1 addition & 0 deletions crates/tinysearch/src/provider/direct/tinyfish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ pub(super) fn prepare(request: &ExecuteToolRequest, key: &str) -> Result<Prepare
}

#[cfg(test)]
#[path = "tinyfish/tinyfish_tests.rs"]
mod test;
1 change: 1 addition & 0 deletions crates/tinysearch/src/provider/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,5 @@ mod normalize;
use normalize::normalize;

#[cfg(test)]
#[path = "mod_tests.rs"]
mod test;
1 change: 1 addition & 0 deletions crates/tinysearch/src/search/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,4 +316,5 @@ fn within_usize_bounds(
}

#[cfg(test)]
#[path = "mod_tests.rs"]
mod test;
1 change: 1 addition & 0 deletions crates/tinysearch/src/search/roles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ pub(super) fn provider_arguments(
}

#[cfg(test)]
#[path = "mod_tests.rs"]
mod test;

/// A caller may send `depth: "deep"` from an older declaration (a resumed
Expand Down
1 change: 1 addition & 0 deletions crates/tinysearch/src/tinybus_module/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ tinybus_module::module_export! {
}

#[cfg(test)]
#[path = "mod_tests.rs"]
mod test;
Loading