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

hazendaz / jmockit1 / 802

12 Apr 2026 05:56PM UTC coverage: 75.468% (+1.4%) from 74.09%
802

Pull #491

github

web-flow
Add comprehensive unit tests to improve coverage from 76.2% to 77.8%

New test files:
- PrimitiveTypeTest: equals, hashCode, getTypeCode, getType, getSize, etc.
- AnnotationVisitorTest: byte/boolean/short/char/int/long/float/double arrays,
  nested annotation, visitArray, visitAnnotation
- AnnotationVisitorTest testdata: ComplexAnnotation, SimpleAnnotation,
  AnnotatedWithPrimitiveArrays, AnnotatedWithEmptyArrays
- ClassReaderTest: accept visitor on annotated/complex classes
- ConstantPoolGenerationTest: newFieldItem, newMethodItem, newMethodHandleItem,
  newConstItem (Character/Boolean/MethodType/PrimitiveType/MethodHandle)
- ClassMetadataReaderTest: version, access, fields, methods, annotations
- ArgumentMismatchTest: null/string/char/byte/short/long/float/int/double/
  boolean/array/custom-toString values
- HamcrestAdapterTest: matches, writeMismatchPhrase, getInnerValue
- TestedClassTest: isClassFromSameModuleOrSystemAsTestedClass paths
- MethodFormatterTest: single/two/three-arg constructors, append method
- Updated ClassFileTest: readFromFileSavingInCache via reflection
- Updated MethodReflectionTest: error paths, superclass lookup

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: hazendaz <975267+hazendaz@users.noreply.github.com>
Pull Request #491: Add comprehensive unit tests to improve code coverage

6026 of 8490 branches covered (70.98%)

Branch coverage included in aggregate %.

12659 of 16269 relevant lines covered (77.81%)

0.78 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
 */
14
public final class ClassNotExercised {
×
15

16
    /** The logger. */
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) {
30
        if (i > 0) {
×
31
            logger.info(s);
×
32
        }
33

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

© 2026 Coveralls, Inc