Skip to content

Commit c1b4313

Browse files
committed
test(cortex-plugins): add lifecycle tests and fix clippy warning
- Add comprehensive lifecycle tests covering plugin discover → load → init → hook → shutdown flow - Add tests for PluginManager creation, discovery, loading, and lifecycle management - Add tests for WasmRuntime and WasmPlugin - Add tests for PluginConfig settings - Add tests for HookRegistry and HookDispatcher - Add tests for EventBus and event subscription - Add tests for PluginCommand and command registry - Fix clippy warning: replace vec![] with array for constant case list
1 parent 29791b5 commit c1b4313

2 files changed

Lines changed: 1713 additions & 1 deletion

File tree

src/cortex-plugins/tests/edge_case_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ version = "{}"
124124

125125
#[test]
126126
fn test_manifest_invalid_toml_syntax() {
127-
let invalid_toml_cases = vec![
127+
let invalid_toml_cases = [
128128
// Missing closing bracket
129129
"[plugin\nid = \"test\"",
130130
// Invalid key syntax

0 commit comments

Comments
 (0)