1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! Test helper module for creating `PluginManager` with built-in plugins.
//!
//! This module provides factory methods for creating `PluginManager` instances.
//! **NOTE**: Plugin crates are `[dev-dependencies]` and only available in
//! integration tests, not unit tests. Unit tests that need plugins should be
//! moved to `tests/` or use mock plugins.
use cratePluginManager;
/// Create a `PluginManager` for tests.
///
/// Returns an empty `PluginManager`. Actual plugin loading happens in integration
/// tests where dev-dependencies are available.
///
/// **For integration tests**: Use the helper in `tests/plugin_factory_helpers.rs`
/// which has access to all language plugin crates.
///
/// **For unit tests**: This returns an empty manager. If your test needs plugins,
/// either move it to `tests/` or mock the plugin functionality.
///
/// # Example
///
/// ```ignore
/// use sqry_core::test_support::plugin_factory::with_builtin_plugins;
///
/// let manager = with_builtin_plugins();
/// // Returns empty manager - plugins not available in src/ unit tests
/// ```