Skip to content

Commit 9e98c8c

Browse files
committed
Add new experimental annotation
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).
1 parent 109a55b commit 9e98c8c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright 2025 Diffblue Limited.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
package com.diffblue.cover.annotations.experimental;
16+
17+
import static java.lang.annotation.ElementType.METHOD;
18+
import static java.lang.annotation.ElementType.PACKAGE;
19+
import static java.lang.annotation.ElementType.PARAMETER;
20+
import static java.lang.annotation.ElementType.TYPE;
21+
import static java.lang.annotation.RetentionPolicy.RUNTIME;
22+
23+
import java.lang.annotation.Retention;
24+
import java.lang.annotation.Target;
25+
26+
/**
27+
* Indicates the annotated element can request assistance from LLMs.
28+
*
29+
* <p>The specific assistance will depend on: the element, what features Diffblue Cover has
30+
* implemented, and any number of other things.
31+
*
32+
* <p><em>Note:</em> this annotation may change in the future without further warning.
33+
*/
34+
@Retention(RUNTIME)
35+
@Target({PACKAGE, TYPE, METHOD, PARAMETER})
36+
@Deprecated // Well, not really, but I don't want to encourage the use of this annotation
37+
public @interface InTestsUseLLM {}

0 commit comments

Comments
 (0)