Skip to content

Add 18 unit tests for color_scheme, font, and persistent config modules#91

Merged
an0nn30 merged 1 commit intomainfrom
chore/core-config-tests
Mar 27, 2026
Merged

Add 18 unit tests for color_scheme, font, and persistent config modules#91
an0nn30 merged 1 commit intomainfrom
chore/core-config-tests

Conversation

@an0nn30
Copy link
Copy Markdown
Owner

@an0nn30 an0nn30 commented Mar 27, 2026

What does this PR do?

Adds test coverage to three previously untested conch_core config modules:

  • color_scheme.rs (6 tests): default Dracula colors, optional field handling, TOML deserialization of complete Alacritty theme, dim colors parsing
  • font.rs (6 tests): defaults (JetBrains Mono, 14.0), serde round-trip, partial TOML deserialization, empty TOML defaults
  • persistent.rs (6 tests): default panel visibility/zoom, serde round-trip with non-default values, empty and partial TOML deserialization

conch_core tests: 55 → 73 (+18). No existing code modified.

Type of change

  • Other — test coverage improvement

Testing

  • All 73 conch_core tests pass
  • No regressions

Test defaults, serde round-trips, TOML deserialization with complete,
partial, and empty inputs, and optional field handling across all three
config modules. Adds 18 new tests.
@an0nn30 an0nn30 merged commit 83d5895 into main Mar 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant