This is an automated email from the ASF dual-hosted git repository.
dongzonglei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 008f669 Update coverage badge from coveralls to codecov (#6992)
008f669 is described below
commit 008f6693552212c3dce01b4f41c6e8e874bdebd9
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Aug 22 15:49:30 2020 +0800
Update coverage badge from coveralls to codecov (#6992)
* Update ShardingSphereSchemaTest
* Update coverage badge from coveralls to codecov
---
README.md | 2 +-
README_ZH.md | 2 +-
docs/document/content/overview/_index.cn.md | 2 +-
docs/document/content/overview/_index.en.md | 2 +-
.../kernel/context/schema/ShardingSphereSchemaTest.java | 9 +++++++--
5 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 64e1397..c779d19a 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
[](https://starchart.cc/apache/shardingsphere)
[](https://travis-ci.org/apache/shardingsphere)
-[](https://coveralls.io/github/apache/shardingsphere?branch=master)
+[](https://codecov.io/gh/apache/shardingsphere)
[](https://www.codacy.com/app/terrymanu/sharding-sphere?utm_source=github.com&utm_medium=referral&utm_content=sharding-sphere/sharding-sphere&utm_campaign=Badge_Grade)
[](https://snyk.io/test/github/apache/shardingsphere?targetFile=pom.xml)
[](http://opentracing.io)
diff --git a/README_ZH.md b/README_ZH.md
index 81b4ee3..c468955 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -8,7 +8,7 @@
[](https://starchart.cc/apache/shardingsphere)
[](https://travis-ci.org/apache/shardingsphere)
-[](https://coveralls.io/github/apache/shardingsphere?branch=master)
+[](https://codecov.io/gh/apache/shardingsphere)
[](https://www.codacy.com/app/terrymanu/sharding-sphere?utm_source=github.com&utm_medium=referral&utm_content=sharding-sphere/sharding-sphere&utm_campaign=Badge_Grade)
[](https://snyk.io/test/github/apache/shardingsphere?targetFile=pom.xml)
[](http://opentracing.io)
diff --git a/docs/document/content/overview/_index.cn.md
b/docs/document/content/overview/_index.cn.md
index a0f7ef6..b2cce22 100644
--- a/docs/document/content/overview/_index.cn.md
+++ b/docs/document/content/overview/_index.cn.md
@@ -30,7 +30,7 @@ ShardingSphere 已于2020年4月16日成为 [Apache 软件基金会](https://apa
[](https://github.com/apache/shardingsphere/releases)
[](https://travis-ci.org/apache/shardingsphere)
-[](https://coveralls.io/github/apache/shardingsphere?branch=dev)
+[](https://codecov.io/gh/apache/shardingsphere)
[](https://www.codacy.com/app/terrymanu/sharding-sphere?utm_source=github.com&utm_medium=referral&utm_content=sharding-sphere/sharding-sphere&utm_campaign=Badge_Grade)
[](http://opentracing.io)
[](https://github.com/apache/skywalking)
diff --git a/docs/document/content/overview/_index.en.md
b/docs/document/content/overview/_index.en.md
index 73c2fe2..e47e958 100644
--- a/docs/document/content/overview/_index.en.md
+++ b/docs/document/content/overview/_index.en.md
@@ -31,7 +31,7 @@ Welcome communicate with community via [mail
list](mailto:[email protected]
[](https://github.com/apache/shardingsphere/releases)
[](https://travis-ci.org/apache/shardingsphere)
-[](https://coveralls.io/github/apache/shardingsphere?branch=dev)
+[](https://codecov.io/gh/apache/shardingsphere)
[](https://www.codacy.com/app/terrymanu/sharding-sphere?utm_source=github.com&utm_medium=referral&utm_content=sharding-sphere/sharding-sphere&utm_campaign=Badge_Grade)
[](http://opentracing.io)
[](https://github.com/apache/skywalking)
diff --git
a/shardingsphere-kernel/shardingsphere-kernel-context/src/test/java/org/apache/shardingsphere/kernel/context/schema/ShardingSphereSchemaTest.java
b/shardingsphere-kernel/shardingsphere-kernel-context/src/test/java/org/apache/shardingsphere/kernel/context/schema/ShardingSphereSchemaTest.java
index 32ca92c..cd3000c 100644
---
a/shardingsphere-kernel/shardingsphere-kernel-context/src/test/java/org/apache/shardingsphere/kernel/context/schema/ShardingSphereSchemaTest.java
+++
b/shardingsphere-kernel/shardingsphere-kernel-context/src/test/java/org/apache/shardingsphere/kernel/context/schema/ShardingSphereSchemaTest.java
@@ -25,6 +25,7 @@ import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import javax.sql.DataSource;
+import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@@ -42,17 +43,21 @@ public final class ShardingSphereSchemaTest {
@Mock
private ClosableDataSource dataSource1;
+ @Mock
+ private DataSource dataSource2;
+
@Test
public void assertCloseDataSources() throws Exception {
- new ShardingSphereSchema(Collections.emptyList(),
Collections.emptyList(), createDataSources(),
mock(ShardingSphereMetaData.class)).closeDataSources(Collections.singleton("ds_0"));
+ new ShardingSphereSchema(Collections.emptyList(),
Collections.emptyList(), createDataSources(),
mock(ShardingSphereMetaData.class)).closeDataSources(Arrays.asList("ds_0",
"ds_2"));
verify(dataSource0).close();
verify(dataSource1, times(0)).close();
}
private Map<String, DataSource> createDataSources() {
- Map<String, DataSource> result = new HashMap<>(2, 1);
+ Map<String, DataSource> result = new HashMap<>(3, 1);
result.put("ds_0", dataSource0);
result.put("ds_1", dataSource1);
+ result.put("ds_2", dataSource2);
return result;
}
}