Skip to content

Commit acbfb46

Browse files
committed
try to get a bit more coverage
1 parent 4dd61f9 commit acbfb46

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sdk-extensions/incubator/src/test/java/io/opentelemetry/sdk/extension/incubator/fileconfig/ResourceFactoryTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,14 @@ private static Stream<Arguments> createWithDetectorsArgs() {
142142
Collections.singletonList("*o*"),
143143
Collections.singletonList("order"),
144144
Resource.getDefault().toBuilder().put("color", "red").build()),
145-
// empty include should be treated as include all
145+
// empty or missing include should be treated as include all
146146
Arguments.of(
147147
Collections.emptyList(),
148148
Collections.singletonList("order"),
149+
Resource.getDefault().toBuilder().put("color", "red").put("shape", "square").build()),
150+
Arguments.of(
151+
null,
152+
Collections.singletonList("order"),
149153
Resource.getDefault().toBuilder().put("color", "red").put("shape", "square").build()));
150154
}
151155

0 commit comments

Comments
 (0)