Skip to content

Commit 51e87fb

Browse files
author
Maria Kusber
authored
Merge pull request #13 from diffblue/maja/methodundertest
Add a new annotation @MethodUnderTest
2 parents a31bf67 + f02db78 commit 51e87fb

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2024 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;
16+
17+
import static java.lang.annotation.ElementType.METHOD;
18+
import static java.lang.annotation.RetentionPolicy.SOURCE;
19+
20+
import java.lang.annotation.Retention;
21+
import java.lang.annotation.Target;
22+
23+
/**
24+
* Indicates the methods being tested in the annotated test method. Diffblue Cover attaches this
25+
* annotation to all tests that it creates.
26+
*/
27+
@Retention(SOURCE)
28+
@Target(METHOD)
29+
public @interface MethodsUnderTest {
30+
31+
String[] value();
32+
}

0 commit comments

Comments
 (0)