botserver/src/tests/test_util.rs
Rodrigo Rodriguez (Pragmatismo) baea0b942c feat: refactor prompt compaction and clean up test files
- Renamed `execute_compact_prompt` to `compact_prompt_for_bots` and simplified logic
- Removed redundant comments and empty lines in test files
- Consolidated prompt compaction threshold handling
- Cleaned up UI logging implementation by removing unnecessary whitespace
- Improved code organization in ui_tree module

The changes focus on code quality improvements, removing clutter, and making the prompt compaction logic more straightforward. Test files were cleaned up to be more concise.
2025-11-11 18:32:52 -03:00

24 lines
504 B
Rust

use std::sync::Once;
static INIT: Once = Once::new();
pub fn setup() {
INIT.call_once(|| {
});
}
#[macro_export]
macro_rules! assert_ok {
($expr:expr) => {
match $expr {
Ok(val) => val,
Err(err) => panic!("Expected Ok, got Err: {:?}", err),
}
};
}
#[macro_export]
macro_rules! assert_err {
($expr:expr) => {
match $expr {
Ok(val) => panic!("Expected Err, got Ok: {:?}", val),
Err(err) => err,
}
};
}