shardingsphere
shardingsphere copied to clipboard
Add more unit tests for the class of `AutoCommitUtils`
Hi community, This issue is for #20305
Aim
Add more unit tests for the class of org.apache.shardingsphere.transaction.utils.AutoCommitUtils.
Basic Qualifications
- Java
- Maven
- Transaction
Detail
Maybe you can mock the sqlStatement like new MySQLSelectStatement(),new MySQLAlterTableStatement()... and assert the result of needOpenTransaction method.
You can check the test coverage on this page: https://app.codecov.io/gh/apache/shardingsphere

@strongduanmu - I have created a PR - https://github.com/apache/shardingsphere/pull/21332. Can you please review?
@abhinav-koppula Thank you for your remind, I will review this pr.