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

mybatis / generator / 1947

14 Jan 2026 02:31PM UTC coverage: 88.838% (+0.04%) from 88.799%
1947

push

github

web-flow
Merge pull request #1411 from mybatis/renovate/github-codeql-action-digest

Update github/codeql-action digest to cdefb33

2347 of 3184 branches covered (73.71%)

11517 of 12964 relevant lines covered (88.84%)

0.89 hits per line

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

57.14
/core/mybatis-generator-core/src/main/java/org/mybatis/generator/api/GeneratedKotlinFile.java
1
/*
2
 *    Copyright 2006-2026 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.mybatis.generator.api;
17

18
import org.mybatis.generator.api.dom.kotlin.KotlinFile;
19

20
public class GeneratedKotlinFile extends GeneratedFile {
21
    private final KotlinFile kotlinFile;
22

23
    public GeneratedKotlinFile(KotlinFile kotlinFile, String targetProject) {
24
        super(targetProject);
1✔
25
        this.kotlinFile = kotlinFile;
1✔
26
    }
1✔
27

28
    @Override
29
    public String getFileName() {
30
        return kotlinFile.getFileName();
1✔
31
    }
32

33
    @Override
34
    public String getTargetPackage() {
35
        return kotlinFile.getPackage().orElse(""); //$NON-NLS-1$
×
36
    }
37

38
    @Override
39
    public boolean isMergeable() {
40
        return false;
×
41
    }
42

43
    public KotlinFile getKotlinFile() {
44
        return kotlinFile;
×
45
    }
46
}
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