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

mybatis / mybatis-3 / #3200

31 Aug 2023 09:19PM UTC coverage: 86.693% (-0.01%) from 86.703%
#3200

Pull #2947

github

web-flow
Merge 49335ad0f into ead5a1d62
Pull Request #2947: Optimize ResultFlag

20 of 20 new or added lines in 6 files covered. (100.0%)

9303 of 10731 relevant lines covered (86.69%)

0.87 hits per line

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

66.67
/src/main/java/org/apache/ibatis/mapping/ResultFlag.java
1
/*
2
 *    Copyright 2009-2022 the original author or authors.
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
 *    You may obtain a copy of the License at
7
 *
8
 *       https://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *    Unless required by applicable law or agreed to in writing, software
11
 *    distributed under the License is distributed on an "AS IS" BASIS,
12
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *    See the License for the specific language governing permissions and
14
 *    limitations under the License.
15
 */
16
package org.apache.ibatis.mapping;
17

18
/**
19
 * @author Clinton Begin
20
 */
21
public class ResultFlag {
×
22

23
  public static final byte NO_FLAG = 0;
24
  public static final byte ID = 1;
25
  public static final byte CONSTRUCTOR = 2;
26

27
  public static boolean containsId(byte flags) {
28
    return (flags & ID) == ID;
1✔
29
  }
30

31
  public static boolean containsConstructor(byte flags) {
32
    return (flags & CONSTRUCTOR) == CONSTRUCTOR;
1✔
33
  }
34

35
}
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