Codex stop-gate flagged that `document/variables.rs` was 865 lines
after the three rounds of `set_color_hex` correctness fixes — over
the project's 800-line ceiling. Tests moved verbatim to a sibling,
mirroring the `layer_panel_tests` / `property_panel_tests` pattern.
crates/openpencil-shell-core/src/document/variables.rs 865 → 318
crates/openpencil-shell-core/src/document/variables_tests.rs (new) 549
`document.rs` registers the sibling under `#[cfg(test)]` between
the existing `mod variables;` and the rest of the file's mod list.
Tests file gets a flat layout — bare `#[test]` functions at file
scope (no inner `mod tests {}` wrapper), `use super::*` removed in
favor of the explicit `use super::{ThemedValue, Variable, ...}`
imports the body actually needs.
No semantic change. 290 shell-core tests pass.
|
||
|---|---|---|
| .. | ||
| document | ||
| i18n | ||
| mcp | ||
| widgets | ||
| agent_settings_state.rs | ||
| chat_provider.rs | ||
| codegen.rs | ||
| document.rs | ||
| figma.rs | ||
| jian.rs | ||
| lib.rs | ||
| mcp.rs | ||
| render_backend.rs | ||
| theme.rs | ||