You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/08/02 03:11:32 UTC
[GitHub] [shardingsphere] tianhao960 opened a new pull request, #19768: Add test cases for DatabaseOperateBackendHandlerFactory
tianhao960 opened a new pull request, #19768:
URL: https://github.com/apache/shardingsphere/pull/19768
Fixes #7522.
Changes proposed in this pull request:
-Add test cases for DatabaseOperateBackendHandlerFactory
-
-
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] codecov-commenter commented on pull request #19768: Add test cases for DatabaseOperateBackendHandlerFactory
Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #19768:
URL: https://github.com/apache/shardingsphere/pull/19768#issuecomment-1202012839
# [Codecov](https://codecov.io/gh/apache/shardingsphere/pull/19768?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
> Merging [#19768](https://codecov.io/gh/apache/shardingsphere/pull/19768?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (38c93ef) into [master](https://codecov.io/gh/apache/shardingsphere/commit/2e654172a58d9dc64da951d985be34dd776a5742?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (2e65417) will **decrease** coverage by `0.00%`.
> The diff coverage is `n/a`.
```diff
@@ Coverage Diff @@
## master #19768 +/- ##
============================================
- Coverage 60.07% 60.07% -0.01%
Complexity 2399 2399
============================================
Files 3856 3856
Lines 54920 54920
Branches 7681 7680 -1
============================================
- Hits 32993 32992 -1
- Misses 19098 19100 +2
+ Partials 2829 2828 -1
```
| [Impacted Files](https://codecov.io/gh/apache/shardingsphere/pull/19768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
|---|---|---|
| [...handler/distsql/ral/hint/enums/HintSourceType.java](https://codecov.io/gh/apache/shardingsphere/pull/19768/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtcHJveHkvc2hhcmRpbmdzcGhlcmUtcHJveHktYmFja2VuZC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvcHJveHkvYmFja2VuZC9oYW5kbGVyL2Rpc3RzcWwvcmFsL2hpbnQvZW51bXMvSGludFNvdXJjZVR5cGUuamF2YQ==) | `0.00% <0.00%> (-42.86%)` | :arrow_down: |
| [...aml/representer/ShardingSphereYamlRepresenter.java](https://codecov.io/gh/apache/shardingsphere/pull/19768/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtaW5mcmEvc2hhcmRpbmdzcGhlcmUtaW5mcmEtdXRpbC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvaW5mcmEvdXRpbC95YW1sL3JlcHJlc2VudGVyL1NoYXJkaW5nU3BoZXJlWWFtbFJlcHJlc2VudGVyLmphdmE=) | `88.88% <0.00%> (-1.12%)` | :arrow_down: |
| [...aml/constructor/ShardingSphereYamlConstructor.java](https://codecov.io/gh/apache/shardingsphere/pull/19768/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtaW5mcmEvc2hhcmRpbmdzcGhlcmUtaW5mcmEtdXRpbC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvaW5mcmEvdXRpbC95YW1sL2NvbnN0cnVjdG9yL1NoYXJkaW5nU3BoZXJlWWFtbENvbnN0cnVjdG9yLmphdmE=) | `100.00% <0.00%> (ø)` | |
| [.../shortcuts/ShardingSphereYamlShortcutsFactory.java](https://codecov.io/gh/apache/shardingsphere/pull/19768/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtaW5mcmEvc2hhcmRpbmdzcGhlcmUtaW5mcmEtdXRpbC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvaW5mcmEvdXRpbC95YW1sL3Nob3J0Y3V0cy9TaGFyZGluZ1NwaGVyZVlhbWxTaG9ydGN1dHNGYWN0b3J5LmphdmE=) | `87.50% <0.00%> (+12.50%)` | :arrow_up: |
| [...database/DatabaseOperateBackendHandlerFactory.java](https://codecov.io/gh/apache/shardingsphere/pull/19768/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtcHJveHkvc2hhcmRpbmdzcGhlcmUtcHJveHktYmFja2VuZC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvcHJveHkvYmFja2VuZC9oYW5kbGVyL2RhdGFiYXNlL0RhdGFiYXNlT3BlcmF0ZUJhY2tlbmRIYW5kbGVyRmFjdG9yeS5qYXZh) | `100.00% <0.00%> (+33.33%)` | :arrow_up: |
Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] TeslaCN merged pull request #19768: Add test cases for DatabaseOperateBackendHandlerFactory
Posted by GitBox <gi...@apache.org>.
TeslaCN merged PR #19768:
URL: https://github.com/apache/shardingsphere/pull/19768
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] TeslaCN commented on a diff in pull request #19768: Add test cases for DatabaseOperateBackendHandlerFactory
Posted by GitBox <gi...@apache.org>.
TeslaCN commented on code in PR #19768:
URL: https://github.com/apache/shardingsphere/pull/19768#discussion_r935084694
##########
shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/handler/database/DatabaseOperateBackendHandlerFactoryTest.java:
##########
@@ -0,0 +1,51 @@
+/*
+ * 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 org.apache.shardingsphere.proxy.backend.handler.database;
+
+import org.apache.shardingsphere.proxy.backend.session.ConnectionSession;
+import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.AlterDatabaseStatement;
+import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateDatabaseStatement;
+import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DropDatabaseStatement;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.junit.MockitoJUnitRunner;
+
+import java.sql.SQLException;
+
+import static org.hamcrest.CoreMatchers.instanceOf;
+import static org.junit.Assert.assertThat;
+import static org.mockito.Mockito.mock;
+
+@RunWith(MockitoJUnitRunner.class)
Review Comment:
Please remove the unused annotation.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org