test: add formal hotpath ABBA runner (#5507)

Co-authored-by: heihutu <[email protected]>
This commit is contained in:
houseme
2026-07-31 11:33:10 +00:00
committed by GitHub
co-authored by heihutu
parent 76b3c085b5
commit 40eee6177a
4 changed files with 733 additions and 23 deletions
+5 -7
View File
@@ -2708,18 +2708,16 @@ impl<T: Operation> S3Router<T> {
pub fn insert(&mut self, method: Method, path: &str, operation: T) -> std::io::Result<()> {
let path = Self::make_route_str(method, path);
#[cfg(test)]
let registered_path = path.clone();
// warn!("set uri {}", &path);
#[cfg(test)]
{
self.router.insert(path.clone(), operation).map_err(std::io::Error::other)?;
self.registered_routes.push(path);
}
#[cfg(not(test))]
self.router.insert(path, operation).map_err(std::io::Error::other)?;
#[cfg(test)]
self.registered_routes.push(registered_path);
Ok(())
}