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

hazendaz / jmockit1 / 496

15 Nov 2025 05:33PM UTC coverage: 72.192% (-0.008%) from 72.2%
496

push

github

web-flow
Merge pull request #412 from hazendaz/renovate/major-spring-core

Update spring core to v7 (major)

5677 of 8360 branches covered (67.91%)

Branch coverage included in aggregate %.

11922 of 16018 relevant lines covered (74.43%)

0.74 hits per line

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

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

8
import edu.umd.cs.findbugs.annotations.NonNull;
9

10
import java.util.HashMap;
11
import java.util.Map;
12

13
import mockit.internal.state.TestRun;
14

15
public final class StaticFieldData extends FieldData {
×
16
    private static final long serialVersionUID = -6596622341651601060L;
17

18
    @NonNull
×
19
    private final transient Map<Integer, Boolean> testIdsToAssignments = new HashMap<>();
20

21
    void registerAssignment() {
22
        int testId = TestRun.getTestId();
×
23
        testIdsToAssignments.put(testId, Boolean.TRUE);
×
24
        writeCount++;
×
25
    }
×
26

27
    void registerRead() {
28
        int testId = TestRun.getTestId();
×
29
        testIdsToAssignments.put(testId, null);
×
30
        readCount++;
×
31
    }
×
32

33
    @Override
34
    void markAsCoveredIfNoUnreadValuesAreLeft() {
35
        for (Boolean withUnreadValue : testIdsToAssignments.values()) {
×
36
            if (withUnreadValue == null) {
×
37
                covered = true;
×
38
                break;
×
39
            }
40
        }
×
41
    }
×
42
}
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