[ 
https://issues.apache.org/jira/browse/BEAM-13877?focusedWorklogId=740752&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-740752
 ]

ASF GitHub Bot logged work on BEAM-13877:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Mar/22 09:44
            Start Date: 14/Mar/22 09:44
    Worklog Time Spent: 10m 
      Work Description: pavel-avilov commented on a change in pull request 
#17050:
URL: https://github.com/apache/beam/pull/17050#discussion_r825756568



##########
File path: playground/backend/internal/executors/executor_builder_test.go
##########
@@ -0,0 +1,210 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements.  See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License.  You may obtain a copy of the License at
+//
+//    http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package executors
+
+import (
+       "reflect"
+       "testing"
+)
+
+func TestNewExecutorBuilder(t *testing.T) {
+       tests := []struct {
+               name string
+               want *ExecutorBuilder
+       }{
+               {
+                       name: "Get executor builder",
+                       want: &ExecutorBuilder{},
+               },
+       }
+       for _, tt := range tests {
+               t.Run(tt.name, func(t *testing.T) {
+                       if got := NewExecutorBuilder(); !reflect.DeepEqual(got, 
tt.want) {
+                               t.Errorf("NewExecutorBuilder() = %v, want %v", 
got, tt.want)
+                       }
+               })
+       }
+}
+
+func TestExecutorBuilder_WithCompiler(t *testing.T) {
+       type fields struct {
+               actions []handler
+       }
+       tests := []struct {
+               name   string
+               fields fields
+               want   *CompileBuilder
+       }{
+               {
+                       name:   "Get CompileBuilder with empty actions",
+                       fields: fields{actions: []handler{}},
+                       want:   &CompileBuilder{ExecutorBuilder{actions: 
[]handler{}}},

Review comment:
       Done




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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 740752)
    Time Spent: 50m  (was: 40m)

> [Playground] Increase test coverage for the executors package
> -------------------------------------------------------------
>
>                 Key: BEAM-13877
>                 URL: https://issues.apache.org/jira/browse/BEAM-13877
>             Project: Beam
>          Issue Type: Sub-task
>          Components: beam-playground
>            Reporter: Aydar Zaynutdinov
>            Assignee: Pavel Avilov
>            Priority: P3
>              Labels: beam-playground-backend
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Need to add unit tests to increase test coverage for the _executors_ package.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to