Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(vendor): add CLAUDE.md for motosan-ai-oauth

Steven Enamakeled9d9ec991b9
diff --git a/vendor/motosan-ai-oauth/CLAUDE.md b/vendor/motosan-ai-oauth/CLAUDE.md
new file mode 100644
index 0000000000..3ccd9f5951
--- /dev/null
+++ b/vendor/motosan-ai-oauth/CLAUDE.md
@@ -0,0 +1,25 @@
+# CLAUDE.md
+
+Guidance for Claude Code when working in this repository.
+
+## Tests live in `*_tests.rs` files
+
+- Unit tests are never inline. Do not write a `#[cfg(test)] mod tests { ... }`
+ block in a source file. Put the tests in a sibling `<module>_tests.rs`
+ (`mod_tests.rs` beside a `mod.rs`, `lib_tests.rs` beside `lib.rs`) and declare
+ it at the bottom of the module:
+
+ ```rust
+ #[cfg(test)]
+ #[path = "foo_tests.rs"]
+ mod tests;
+ ```
+
+- The test file starts with `use super::*;` and carries no `#[cfg(test)]` of its
+ own. It is still a child module, so it reaches private items exactly as an
+ inline module did.
+- Name test files `<module>_tests.rs`; a second group for the same module is
+ `<module>_<topic>_tests.rs`. Never `test.rs`, `tests.rs` or `<module>_test.rs`.
+- 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.