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

temporalio / sdk-java / #433

20 Nov 2026 11:28PM UTC coverage: 71.886% (+0.05%) from 71.837%
#433

push

github

web-flow
Report storage driver types in worker heartbeats (#3230)

8791 of 14383 branches covered (61.12%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 1 file covered. (100.0%)

146 existing lines in 21 files now uncovered.

34692 of 46106 relevant lines covered (75.24%)

0.75 hits per line

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

47.17
/temporal-sdk/src/main/java/io/temporal/workflow/SignalChildWorkflowOptions.java
1
package io.temporal.workflow;
2

3
import io.temporal.common.Experimental;
4
import java.util.*;
5

6
/**
7
 * Options for {@link ChildWorkflowStub#signalWithOptions(String, SignalChildWorkflowOptions,
8
 * Object...)}.
9
 */
10
public final class SignalChildWorkflowOptions {
11

12
  public static SignalChildWorkflowOptions.Builder newBuilder() {
13
    return new SignalChildWorkflowOptions.Builder();
1 ✔
14
  }
15

16
  public static SignalChildWorkflowOptions.Builder newBuilder(SignalChildWorkflowOptions options) {
17
    return new SignalChildWorkflowOptions.Builder(options);
×
18
  }
19

20
  public static SignalChildWorkflowOptions getDefaultInstance() {
21
    return DEFAULT_INSTANCE;
1 ✔
22
  }
23

24
  private static final SignalChildWorkflowOptions DEFAULT_INSTANCE;
25

26
  static {
27
    DEFAULT_INSTANCE = SignalChildWorkflowOptions.newBuilder().build();
1 ✔
28
  }
1 ✔
29

30
  public static final class Builder {
31
    private List<EventGroup> eventGroups;
32

33
    private Builder() {}
34

35
    private Builder(SignalChildWorkflowOptions options) {
×
36
      if (options == null) {
×
37
        return;
×
38
      }
39
      if (!options.eventGroups.isEmpty()) {
×
40
        this.eventGroups = new ArrayList<>(options.eventGroups);
×
41
      }
42
    }
×
43

44
    /**
45
     * Event Groups to associate with the signal command, in addition to those in scope. Calls
46
     * accumulate.
47
     *
48
     * @see EventGroup
49
     */
50
    @Experimental
51
    public Builder addEventGroups(EventGroup... eventGroups) {
52
      if (eventGroups.length == 0) return this;
1 !
53
      if (this.eventGroups == null) {
1 !
54
        this.eventGroups = new ArrayList<>(eventGroups.length);
1 ✔
55
      }
56
      for (EventGroup group : eventGroups) {
1 ✔
57
        this.eventGroups.add(Objects.requireNonNull(group, "eventGroups"));
1 ✔
58
      }
59
      return this;
1 ✔
60
    }
61

62
    /**
63
     * Associates the given Event Groups, in addition to any already added. Calls accumulate.
64
     *
65
     * @see EventGroup
66
     */
67
    @Experimental
68
    public Builder addEventGroups(List<EventGroup> eventGroups) {
UNCOV
69
      return addEventGroups(eventGroups.toArray(new EventGroup[0]));
×
70
    }
71

72
    public SignalChildWorkflowOptions build() {
73
      return new SignalChildWorkflowOptions(eventGroups);
1 ✔
74
    }
75
  }
76

77
  private final List<EventGroup> eventGroups;
78

79
  private SignalChildWorkflowOptions(List<EventGroup> eventGroups) {
1 ✔
80
    this.eventGroups =
1 ✔
81
        eventGroups == null || eventGroups.isEmpty()
1 !
82
            ? Collections.emptyList()
1 ✔
83
            : Collections.unmodifiableList(new ArrayList<>(eventGroups));
1 ✔
84
  }
1 ✔
85

86
  @Experimental
87
  public List<EventGroup> getEventGroups() {
88
    return eventGroups;
1 ✔
89
  }
90

91
  public Builder toBuilder() {
UNCOV
92
    return new Builder(this);
×
93
  }
94

95
  @Override
96
  public String toString() {
UNCOV
97
    return "SignalChildWorkflowOptions{" + "eventGroups=" + eventGroups + '}';
×
98
  }
99

100
  @Override
101
  public boolean equals(Object o) {
102
    if (this == o) return true;
×
103
    if (o == null || getClass() != o.getClass()) return false;
×
104
    SignalChildWorkflowOptions that = (SignalChildWorkflowOptions) o;
×
UNCOV
105
    return Objects.equals(eventGroups, that.eventGroups);
×
106
  }
107

108
  @Override
109
  public int hashCode() {
UNCOV
110
    return Objects.hashCode(eventGroups);
×
111
  }
112
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc