wolfstudy commented on pull request #8761:
URL: https://github.com/apache/pulsar/pull/8761#issuecomment-737077117
> Could you please a unit test for this change?
In fact, in the integration test, we already test this case.
In `generateCreateFunctionCommand()`, we add the command as follows:
```
if (batchBuilder != null) {
commandBuilder.append("--batch-builder" + batchBuilder);
}
```
And in create different language functions, we will use
`generateCreateFunctionCommand` res to test different case.
```
switch (runtime){
case JAVA:
command = generator.generateCreateFunctionCommand();
break;
case PYTHON:
case GO:
generator.setRuntime(runtime);
command =
generator.generateCreateFunctionCommand(functionFile);
break;
default:
throw new IllegalArgumentException("Unsupported runtime : "
+ runtime);
}
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]