Skip to content

Commit 5a71c6f

Browse files
committed
TG-23029 - added new annotations for @ContributionFromDiffblue and @ManagedByDiffblue
1 parent 4a27e91 commit 5a71c6f

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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;
16+
17+
/**
18+
* Empty interface, required, with the Category annotation, to label JUnit 4 tests in the following
19+
* manner: @Category(ContributionFromDiffblue.class).
20+
*
21+
* <p>Identifies a test that has contributions from Diffblue.
22+
*/
23+
public interface ContributionFromDiffblue {}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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;
16+
17+
/**
18+
* Empty interface, identifies a test as managed by Diffblue. Tests annotated with this can be
19+
* removed or updated by Diffblue and so should not be adjusted manually.
20+
*/
21+
public interface ManagedByDiffblue {}

0 commit comments

Comments
 (0)