Skip to content

test: cover CLI helper edge cases#228

Open
haosenwang1018 wants to merge 1 commit intozilliztech:mainfrom
haosenwang1018:test/cli-helper-coverage
Open

test: cover CLI helper edge cases#228
haosenwang1018 wants to merge 1 commit intozilliztech:mainfrom
haosenwang1018:test/cli-helper-coverage

Conversation

@haosenwang1018
Copy link
Copy Markdown
Contributor

What

  • add helper tests for _build_cli_overrides() nested config mapping
  • add helper tests for _cfg_to_memsearch_kwargs() normalization of empty optional values
  • add helper tests for _extract_section() section-boundary and EOF behavior

Why

Follow-up coverage for #114.

These CLI helpers contain pure transformation logic that can regress silently without any external dependencies. This patch locks down config override nesting, MemSearch kwarg extraction, and section-expansion boundaries used by the expand command.

Testing

  • uv run python -m pytest tests/test_cli_helpers.py -q
  • uv run ruff check tests/test_cli_helpers.py
  • uv run ruff format --check tests/test_cli_helpers.py

@haosenwang1018 haosenwang1018 force-pushed the test/cli-helper-coverage branch from a9671d1 to aa6149d Compare April 2, 2026 05:09
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