You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/12/14 10:34:08 UTC

[GitHub] [beam] daria-malkova commented on a change in pull request #16198: [BEAM-13437][Playground] Add code_processing' benchmarks

daria-malkova commented on a change in pull request #16198:
URL: https://github.com/apache/beam/pull/16198#discussion_r768530246



##########
File path: playground/backend/internal/code_processing/code_processing_test.go
##########
@@ -645,3 +647,184 @@ func Test_getRunOrTestCmd(t *testing.T) {
 		})
 	}
 }
+
+func setupBenchmarks(sdk pb.Sdk) {
+	err := os.MkdirAll(configFolder, fs.ModePerm)
+	if err != nil {
+		panic(err)
+	}
+	filePath := filepath.Join(configFolder, sdk.String()+".json")
+	switch sdk {
+	case pb.Sdk_SDK_JAVA:
+		err = os.WriteFile(filePath, []byte(javaConfig), 0600)

Review comment:
       Just a suggestion - you cold create map[SDK, config] instead of switch-case




-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org