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

leeonky / test-charm-java / 233

25 Apr 2025 03:16AM UTC coverage: 74.053% (+1.2%) from 72.849%
233

push

circleci

leeonky
update version

8014 of 10822 relevant lines covered (74.05%)

0.74 hits per line

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

60.0
/DAL-java/src/main/java/com/github/leeonky/dal/runtime/AdaptiveList.java
1
package com.github.leeonky.dal.runtime;
2

3
import java.util.Collection;
4
import java.util.List;
5
import java.util.function.Supplier;
6
import java.util.stream.Stream;
7

8
public interface AdaptiveList<T> {
9
    DALCollection<T> list();
10

11
    default boolean isEmpty() {
12
        return list().isEmpty();
×
13
    }
14

15
    List<T> soloList();
16

17
    default T single() {
18
        return soloList().get(0);
1✔
19
    }
20

21
    static <T> AdaptiveList<T> staticList(Collection<T> list) {
22
        return new StaticAdaptiveList<>(new CollectionDALCollection<>(list));
1✔
23
    }
24

25
    static <T> AdaptiveList<T> staticList(Supplier<T> supplier) {
26
        return new StaticAdaptiveList<>(new InfiniteDALCollection<>(supplier));
1✔
27
    }
28

29
    default Stream<T> stream() {
30
        return list().values();
×
31
    }
32
}
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