Skip to content

test(panel): cover file_panel.list_options.path_style#110

Merged
dlyongemallo merged 1 commit intomainfrom
test_path_style
Apr 14, 2026
Merged

test(panel): cover file_panel.list_options.path_style#110
dlyongemallo merged 1 commit intomainfrom
test_path_style

Conversation

@dlyongemallo
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 14, 2026 09:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the functional test suite to cover the file_panel.list_options.path_style configuration, ensuring file-name rendering behaves correctly across "basename" and "full" modes, including when show_path is disabled (tree listing mode).

Changes:

  • Added functional tests asserting the rendered highlight segments for path_style = "basename" vs "full", including active-file highlighting behavior.
  • Verified path_style is ignored in tree mode (show_path = false).
  • Exposed render_file via the panel_render._test table so tests can exercise the real rendering logic with a lightweight panel stub.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
lua/diffview/tests/functional/panel_render_spec.lua Adds functional coverage for file_panel.list_options.path_style rendering behavior.
lua/diffview/scene/views/diff/render.lua Exposes render_file through _test for direct use in tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dlyongemallo dlyongemallo merged commit f08b8a0 into main Apr 14, 2026
6 checks passed
@dlyongemallo dlyongemallo deleted the test_path_style branch April 14, 2026 11:50
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.

2 participants