8000 test: add test stub for DeepCodeLLMBindingImpl by miri-yehezkel · Pull Request #91 · snyk/code-client-go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test: add test stub for DeepCodeLLMBindingImpl #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

miri-yehezkel
Copy link
Contributor

Description

Add a FakeDeepCodeLLMBindingImpl, used to stub tests

Checklist

  • Tests added and all succeed
  • Linted
  • README.md updated, if user-facing

🚨After having merged, please update the snyk-ls and CLI go.mod to pull in latest client.

@miri-yehezkel miri-yehezkel self-assigned this Apr 2, 2025
@miri-yehezkel miri-yehezkel requested review from a team as code owners April 2, 2025 10:25
@bastiandoetsch
Copy link
Contributor

I wonder if a generated mock would be better for the http layer?

Copy link
Contributor

Choose a reason for hiding this comment

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

dumb question: why not gomock? have you seen http/mocks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

have you seen http/mocks?

Not silly at all, I did miss it!
If I understand correctly this would mean the PR is not needed. Testing on my service 🙏
LMK if you think I missed something and would need to abstract something in the library :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bastiandoetsch thanks for calling out http/mocks! I used it on our service to test the library :)
Closing this PR 💪

@miri-yehezkel miri-yehezkel deleted the test/TREX-1845-add-fake-deepcode-binding-impl branch April 29, 2025 11:33
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
0