daria-malkova commented on a change in pull request #16482:
URL: https://github.com/apache/beam/pull/16482#discussion_r784040622
##########
File path: playground/backend/internal/preparers/java_preparators_test.go
##########
@@ -88,25 +88,39 @@ func Test_replace(t *testing.T) {
}
}
-func TestGetJavaPreparators(t *testing.T) {
+func TestGetJavaPreparers(t *testing.T) {
type args struct {
- filePath string
+ filePath string
+ isUnitTest bool
+ isKata bool
}
tests := []struct {
name string
args args
want int
}{
{
- name: "all success",
- args: args{"MOCK_FILEPATH"},
- want: 4,
+ name: "Test number of preparers for code",
+ args: args{"MOCK_FILEPATH", false, false},
+ want: 2,
+ },
+ {
+ name: "Test number of preparers for unit test",
+ args: args{"MOCK_FILEPATH", false, false},
+ want: 2,
+ },
+ {
+ name: "Test number of preparers for kata",
+ args: args{"MOCK_FILEPATH", false, false},
Review comment:
Done
##########
File path: playground/backend/internal/preparers/preparator.go
##########
@@ -13,10 +13,38 @@
// See the License for the specific language governing permissions and
Review comment:
Done
##########
File path: playground/backend/internal/preparers/python_preparators.go
##########
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
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]