mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-10-27 06:53:11 +08:00
Inline Rust test fns (#[test], #[tokio::test], #[async_std::test], #[actix_rt::test], #[test_case::case]) inside a regular .rs file were indexed as ordinary Functions (is_test=false) and leaked past the store.c is_test!=1 filter into graph/agent context — test detection was file-path-based only (cbm_is_test_file: *_test.rs / test_*). Add rust_def_is_test(decorators) (mirroring rust_cfg_qualified_name's scan) and set def.is_test in extract_func_def's Rust branch. Closes #855. Signed-off-by: Greg Tiller <tiller@dal.ca>