test: Increase coverage for custom_openai and plugins_manager#135
Conversation
Added comprehensive unit tests for `lua/llm/managers/custom_openai.lua` and `lua/llm/managers/plugins_manager.lua` to improve code coverage. Replaced empty placeholder tests with actual functional verification of properties and behavior. Removed completed item 3 from BACKLOG.md. Co-authored-by: julwrites <18639913+julwrites@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR addresses Tech Debt 1 - Subtask 3 from
BACKLOG.mdby increasing test coverage forcustom_openai.luaandplugins_manager.lua.It fills out missing tests in
tests/spec/managers/custom_openai_spec.luafor functions such as:debug_custom_openai_modelscreate_sample_yaml_fileserialize_to_yamladd_custom_openai_modeldelete_custom_openai_modelIt also replaces placeholder tests (
assert.is_true(true)) intests/spec/managers/plugins_manager_spec.luawith functional tests that actually verify logic for functions like:populate_plugins_buffersetup_plugins_keymapsrefresh_plugin_listinstall_plugin_under_cursoruninstall_plugin_under_cursorrefresh_available_pluginsget_plugin_info_under_cursormanage_pluginsThe corresponding item 3 has been successfully removed from
BACKLOG.md. All unit tests (make test) pass and coverage correctly increased.PR created automatically by Jules for task 6432413238629619084 started by @julwrites