lostluck commented on a change in pull request #16719:
URL: https://github.com/apache/beam/pull/16719#discussion_r799015900



##########
File path: sdks/go/test/integration/primitives/pardo.go
##########
@@ -156,3 +159,26 @@ func splitByName(key string, vals []string, a, j, d 
func(string)) {
                emitter(val)
        }
 }
+
+// ParDoMultiOutput tests that a DoFn can access PipelineOptions.
+func ParDoPipelineOptions() *beam.Pipeline {
+       // Setup some fake flags
+       flag.String("A", "", "Flag for testing.")
+       flag.String("B", "", "Flag for testing.")
+       flag.String("C", "", "Flag for testing.")
+       flag.CommandLine.Parse([]string{"--A=123", "--B=456", "--C=789"})
+
+       p, s := beam.NewPipelineWithRoot()
+
+       in := beam.Create(s, 1)

Review comment:
       To kick off a pipeline without using a create, use beam.Impulse() to get 
a PCollection<[]byte>. Then you can ignore the value in the downstream dofn by 
calling the `_ []byte`.




-- 
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]


Reply via email to