acrites commented on code in PR #40639:
URL: https://github.com/apache/beam/pull/40639#discussion_r4669742816
##########
runners/google-cloud-dataflow-java/worker/src/test/java/org/apache/beam/runners/dataflow/worker/IntrinsicMapTaskExecutorFactoryTest.java:
##########
@@ -567,6 +573,193 @@ public void testCreateParDoOperation() throws Exception {
assertEquals(1, parDoOperation.receivers.length);
assertEquals(0, parDoOperation.receivers[0].getReceiverCount());
assertEquals(Operation.InitializationState.UNSTARTED,
parDoOperation.initializationState);
+ assertFalse(parDoOperation.shouldReportBytesRead());
+ assertTrue(parDoOperation.getBytesReadCoders().isEmpty());
+ assertNull(parDoOperation.getBytesReadCoder(parDoOperation.receivers[0]));
+ }
+
+ static class TestSplittableDoFn extends DoFn<String, String> {
Review Comment:
Sounds good. I made a new TestSplittableDoFn's class to use in both test
files.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]