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

leeonky / test-charm-java / 293

12 Sep 2025 04:43PM UTC coverage: 74.22% (-0.09%) from 74.312%
293

push

circleci

leeonky
create sub list from spec list in spec

33 of 42 new or added lines in 8 files covered. (78.57%)

32 existing lines in 11 files now uncovered.

8234 of 11094 relevant lines covered (74.22%)

0.74 hits per line

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

69.23
/bean-util/src/main/java/com/github/leeonky/util/PropertyReader.java
1
package com.github.leeonky.util;
2

3
import java.lang.reflect.Type;
4
import java.util.LinkedList;
5
import java.util.List;
6

7
public interface PropertyReader<T> extends PropertyAccessor<T> {
8
    Object getValue(T instance);
9

10
    default PropertyReader<?> getPropertyChainReader(List<Object> chain) {
11
        PropertyReader<?> reader = this;
1✔
12
        LinkedList<Object> linkedChain = new LinkedList<>(chain);
1✔
13
        while (!linkedChain.isEmpty()) {
1✔
14
            Object p = linkedChain.removeFirst();
1✔
15
            if (p instanceof Integer)
1✔
16
                return BeanClass.create(getType().getElementType().getType()).getPropertyChainReader(linkedChain);
1✔
17
            else
18
                reader = getType().getPropertyReader((String) p);
1✔
19
        }
1✔
20
        return reader;
1✔
21
    }
22

23
    default PropertyReader<T> decorateType(BeanClass<? extends T> newType) {
NEW
24
        if (newType == getType())
×
UNCOV
25
            return this;
×
UNCOV
26
        return new PropertyReaderDecorator<T>(this) {
×
27
            @Override
28
            public Type getGenericType() {
NEW
29
                return newType.getGenericType();
×
30
            }
31
        };
32
    }
33
}
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