storkit: merge 392_refactor_extract_shared_transport_utilities_from_matrix_module_into_chat_submodule

This commit is contained in:
dave
2026-03-25 14:43:28 +00:00
parent 580ab1ce68
commit 077288e7b7
21 changed files with 344 additions and 326 deletions
+3 -3
View File
@@ -356,14 +356,14 @@ mod tests {
#[test]
fn start_command_is_registered() {
use crate::chat::transport::matrix::commands::commands;
use crate::chat::commands::commands;
let found = commands().iter().any(|c| c.name == "start");
assert!(found, "start command must be in the registry");
}
#[test]
fn start_command_appears_in_help() {
let result = crate::chat::transport::matrix::commands::tests::try_cmd_addressed(
let result = crate::chat::commands::tests::try_cmd_addressed(
"Timmy",
"@timmy:homeserver.local",
"@timmy help",
@@ -378,7 +378,7 @@ mod tests {
#[test]
fn start_command_falls_through_to_none_in_registry() {
// The start handler in the registry returns None (handled async in bot.rs).
let result = crate::chat::transport::matrix::commands::tests::try_cmd_addressed(
let result = crate::chat::commands::tests::try_cmd_addressed(
"Timmy",
"@timmy:homeserver.local",
"@timmy start 42",