Skip to content

Add assert_pending tests and fix Logger.enable#1

Merged
trippwill merged 2 commits into
mainfrom
codex/add-tests-for-util.assert_pending
Jun 7, 2025
Merged

Add assert_pending tests and fix Logger.enable#1
trippwill merged 2 commits into
mainfrom
codex/add-tests-for-util.assert_pending

Conversation

@trippwill
Copy link
Copy Markdown
Owner

Summary

  • add unit tests for util.assert_pending
  • fix parameter validation for Logger:enable

Testing

  • /tmp/nvim-linux-x86_64/bin/nvim --headless -u NONE -c 'set rtp+=/tmp/plenary' -c 'runtime plugin/plenary.vim' -c 'PlenaryBustedDirectory tests/' -c 'qa'

https://chatgpt.com/codex/tasks/task_e_68442bb414e4832e9e14fc610d3a25d0

Copilot AI review requested due to automatic review settings June 7, 2025 12:19
Copy link
Copy Markdown
Contributor

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 adds unit tests for the util.assert_pending helper and corrects the parameter validation logic in Logger:enable.

  • Introduces tests covering both matching and mismatched absolute file paths for util.assert_pending
  • Adjusts Logger:enable to properly validate its parameters (not shown in this diff)
Comments suppressed due to low confidence (1)

tests/swapdiff/util_spec.lua:75

  • It would strengthen the test to assert on the specific error message, ensuring it clearly indicates the mismatch between expected and actual absolute file paths.
assert.is_truthy(err)

Comment thread tests/swapdiff/util_spec.lua
@trippwill trippwill merged commit 12c018d into main Jun 7, 2025
1 check passed
@trippwill trippwill deleted the codex/add-tests-for-util.assert_pending branch June 7, 2025 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants