• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hazendaz / jmockit1 / 745

14 Mar 2026 09:03PM UTC coverage: 73.977% (-0.06%) from 74.032%
745

push

github

web-flow
Merge pull request #476 from hazendaz/copilot/fix-mocking-violation-alerts

Improve JVM mocking restriction detection and error messaging

5885 of 8458 branches covered (69.58%)

Branch coverage included in aggregate %.

4 of 13 new or added lines in 1 file covered. (30.77%)

6 existing lines in 2 files now uncovered.

12329 of 16163 relevant lines covered (76.28%)

0.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/coverageTests/src/main/java/integration/tests/ClassNotExercised.java
1
/*
2
 * MIT License
3
 * Copyright (c) 2006-2025 JMockit developers
4
 * See LICENSE file for full license text.
5
 */
6
package integration.tests;
7

8
import org.slf4j.Logger;
9
import org.slf4j.LoggerFactory;
10

11
/**
12
 * The Class ClassNotExercised.
13
 */
UNCOV
14
public final class ClassNotExercised {
×
15

16
    /** The logger. */
UNCOV
17
    private static final Logger logger = LoggerFactory.getLogger(ClassNotExercised.class);
×
18

19
    /**
20
     * Do something.
21
     *
22
     * @param i
23
     *            the i
24
     * @param s
25
     *            the s
26
     *
27
     * @return true, if successful
28
     */
29
    public boolean doSomething(int i, String s) {
UNCOV
30
        if (i > 0) {
×
UNCOV
31
            logger.info(s);
×
32
        }
33

UNCOV
34
        return !s.isEmpty();
×
35
    }
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc