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

leeonky / test-charm-java / 156

20 Mar 2025 01:53PM UTC coverage: 74.243% (-0.2%) from 74.475%
156

push

circleci

leeonky
Refactor

14 of 15 new or added lines in 12 files covered. (93.33%)

126 existing lines in 29 files now uncovered.

7947 of 10704 relevant lines covered (74.24%)

0.74 hits per line

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

77.78
/DAL-extension-basic/src/main/java/com/github/leeonky/dal/extensions/basic/sftp/util/Util.java
1
package com.github.leeonky.dal.extensions.basic.sftp.util;
2

3
import com.github.leeonky.dal.runtime.inspector.Dumper;
4

5
import java.io.FileNotFoundException;
6
import java.util.Optional;
7

8
import static com.github.leeonky.util.Sneaky.sneakyThrow;
9

UNCOV
10
public class Util {
×
11
    public static final Dumper DIR_DUMPER = new DirDumper();
1✔
12
    public static final Dumper FILE_DUMPER = new FileDumper();
1✔
13

14
    public static Object getSubFile(SFtpFile sFtpFile, Object property) {
15
        Optional<SFtpFile> first = sFtpFile.access(property);
1✔
16
        if (first.isPresent())
1✔
17
            return first.get();
1✔
18
        if (sFtpFile.ls().stream().anyMatch(f -> f.name().startsWith(property + ".")))
1✔
19
            return new SftpFileGroup(sFtpFile, property.toString());
1✔
UNCOV
20
        return sneakyThrow(new FileNotFoundException(String.format("File or File Group <%s> not found", property)));
×
21
    }
22
}
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