()
| 63 | |
| 64 | #[test] |
| 65 | fn init_rejects_impossible_budgets() { |
| 66 | // Byte budgets derived against a 1 MiB ceiling sum to ~1 MiB; feeding |
| 67 | // them to a governor whose ceiling is only 1000 bytes must fail |
| 68 | // `GovernorConfig::validate`. |
| 69 | let budgets = EngineConfig::default().to_byte_budgets(1024 * 1024); |
| 70 | assert!(budgets.total() > 1000); |
| 71 | let result = init_governor(1000, &budgets); |
| 72 | assert!(result.is_err()); |
| 73 | } |
| 74 | |
| 75 | /// Build the governor exactly as the server does on a fresh boot: |
| 76 | /// default engine fractions of a 1 GiB ceiling. |
nothing calls this directly
no test coverage detected