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

leeonky / test-charm-java / 296

15 Sep 2025 02:01PM UTC coverage: 74.593% (+0.4%) from 74.22%
296

push

circleci

leeonky
checking during consistency merge

89 of 94 new or added lines in 6 files covered. (94.68%)

11 existing lines in 6 files now uncovered.

8435 of 11308 relevant lines covered (74.59%)

0.75 hits per line

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

87.5
/jfactory/src/main/java/com/github/leeonky/jfactory/DependencyProducer.java
1
package com.github.leeonky.jfactory;
2

3
import com.github.leeonky.util.BeanClass;
4

5
import java.util.List;
6
import java.util.function.Function;
7
import java.util.function.Supplier;
8

9
@Deprecated
10
class DependencyProducer<T> extends Producer<T> {
11
    private final List<Supplier<Object>> dependencies;
12
    private final Function<Object[], T> rule;
13

14
    public DependencyProducer(BeanClass<T> type, List<Supplier<Object>> dependencies, Function<Object[], T> rule) {
15
        super(type);
1✔
16
        this.dependencies = dependencies;
1✔
17
        this.rule = rule;
1✔
18
    }
1✔
19

20
    @Override
21
    protected T produce() {
22
        return rule.apply(dependencies.stream().map(Supplier::get).toArray());
1✔
23
    }
24

25
    @Override
26
    protected Producer<T> changeFrom(ObjectProducer<T> producer) {
27
        if (producer.isFixed())
1✔
28
            return producer;
1✔
UNCOV
29
        return super.changeFrom(producer);
×
30
    }
31
}
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