Add an @InTestsUseLLM experimental annotation#46
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new experimental annotation @InTestsUseLLM that indicates when Large Language Models (LLMs) can be used for test assistance. The annotation is marked as deprecated to discourage production usage while enabling experimental features.
- Adds new experimental annotation for LLM usage indication
- Updates version from 1.7.0 to 1.8.0 across configuration files
- Documents the experimental annotation with usage warnings
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/main/java/com/diffblue/cover/annotations/experimental/InTestsUseLLM.java | New annotation interface for indicating LLM usage capability |
| pom.xml | Version bump from 1.7.0 to 1.8.0 |
| README.md | Version updates and documentation for experimental annotations |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
src/main/java/com/diffblue/cover/annotations/experimental/InTestsUseLLM.java
Outdated
Show resolved
Hide resolved
0ed43c6 to
60b432e
Compare
This will allow Cover to interrogate LLMs on the annotated elements. The exact behaviour is to be determined (hence putting it in an `experimental` package).
60b432e to
502f727
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces version 1.8.0 of the
cover-annotationslibrary, updates relevant documentation, and adds a new experimental annotation for LLM usage. The most important changes are summarized below.Version bump and dependency updates:
1.8.0inpom.xmland all dependency examples inREADME.mdto reflect the new release. [1] [2] [3]Experimental annotation support:
@InTestsUseLLMincom.diffblue.cover.annotations.experimental, which signals that LLMs may be used in the annotated context. This annotation is marked as deprecated and is not recommended for production use.README.mddocumentation to introduce the concept of experimental annotations, warn users against relying on them in production, and provide details about@InTestsUseLLM.