Skip to content

Commit cceccc7

Browse files
committed
Test Add coverage
1 parent c796840 commit cceccc7

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

junit-jupiter-api/src/main/java/org/junit/jupiter/api/NoCoverage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
final class NoCoverage {
1414

15-
private NoCoverage() {
15+
NoCoverage() {
1616
/* no-op */
1717
}
1818

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright 2015-2025 the original author or authors.
3+
*
4+
* All rights reserved. This program and the accompanying materials are
5+
* made available under the terms of the Eclipse Public License v2.0 which
6+
* accompanies this distribution and is available at
7+
*
8+
* https://www.eclipse.org/legal/epl-v20.html
9+
*/
10+
11+
package org.junit.jupiter.api;
12+
13+
import static org.junit.jupiter.api.Assertions.assertEquals;
14+
15+
class NoCoverageTest {
16+
17+
@Test
18+
void test() {
19+
assertEquals(new NoCoverage().methodWithoutCoverage(), 4950);
20+
}
21+
}

0 commit comments

Comments
 (0)