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 @@
 [![Stargazers over 
time](https://starchart.cc/apache/shardingsphere.svg)](https://starchart.cc/apache/shardingsphere)
 
 [![Build 
Status](https://api.travis-ci.org/apache/shardingsphere.svg?branch=master&status=created)](https://travis-ci.org/apache/shardingsphere)
-[![Coverage 
Status](https://coveralls.io/repos/github/apache/shardingsphere/badge.svg?branch=master)](https://coveralls.io/github/apache/shardingsphere?branch=master)
+[![codecov](https://codecov.io/gh/apache/shardingsphere/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/shardingsphere)
 [![Codacy 
Badge](https://api.codacy.com/project/badge/Grade/278600ed40ad48e988ab485b439abbcd)](https://www.codacy.com/app/terrymanu/sharding-sphere?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=sharding-sphere/sharding-sphere&amp;utm_campaign=Badge_Grade)
 
[![snyk](https://snyk.io/test/github/apache/shardingsphere/badge.svg?targetFile=pom.xml)](https://snyk.io/test/github/apache/shardingsphere?targetFile=pom.xml)
 [![OpenTracing-1.0 
Badge](https://img.shields.io/badge/OpenTracing--1.0-enabled-blue.svg)](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 @@
 [![Stargazers over 
time](https://starchart.cc/apache/shardingsphere.svg)](https://starchart.cc/apache/shardingsphere)
 
 [![Build 
Status](https://api.travis-ci.org/apache/shardingsphere.svg?branch=master&status=created)](https://travis-ci.org/apache/shardingsphere)
-[![Coverage 
Status](https://coveralls.io/repos/github/apache/shardingsphere/badge.svg?branch=master)](https://coveralls.io/github/apache/shardingsphere?branch=master)
+[![codecov](https://codecov.io/gh/apache/shardingsphere/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/shardingsphere)
 [![Codacy 
Badge](https://api.codacy.com/project/badge/Grade/278600ed40ad48e988ab485b439abbcd)](https://www.codacy.com/app/terrymanu/sharding-sphere?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=sharding-sphere/sharding-sphere&amp;utm_campaign=Badge_Grade)
 
[![snyk](https://snyk.io/test/github/apache/shardingsphere/badge.svg?targetFile=pom.xml)](https://snyk.io/test/github/apache/shardingsphere?targetFile=pom.xml)
 [![OpenTracing-1.0 
Badge](https://img.shields.io/badge/OpenTracing--1.0-enabled-blue.svg)](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
 [![GitHub 
release](https://img.shields.io/github/release/apache/shardingsphere.svg)](https://github.com/apache/shardingsphere/releases)
 
 [![Build 
Status](https://api.travis-ci.org/apache/shardingsphere.svg?branch=master&status=created)](https://travis-ci.org/apache/shardingsphere)
-[![Coverage 
Status](https://coveralls.io/repos/github/apache/shardingsphere/badge.svg?branch=dev)](https://coveralls.io/github/apache/shardingsphere?branch=dev)
+[![codecov](https://codecov.io/gh/apache/shardingsphere/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/shardingsphere)
 [![Codacy 
Badge](https://api.codacy.com/project/badge/Grade/278600ed40ad48e988ab485b439abbcd)](https://www.codacy.com/app/terrymanu/sharding-sphere?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=sharding-sphere/sharding-sphere&amp;utm_campaign=Badge_Grade)
 [![OpenTracing-1.0 
Badge](https://img.shields.io/badge/OpenTracing--1.0-enabled-blue.svg)](http://opentracing.io)
 [![Skywalking 
Tracing](https://img.shields.io/badge/Skywalking%20Tracing-enable-brightgreen.svg)](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]
 [![GitHub 
release](https://img.shields.io/github/release/apache/shardingsphere.svg)](https://github.com/apache/shardingsphere/releases)
 
 [![Build 
Status](https://api.travis-ci.org/apache/shardingsphere.svg?branch=master&status=created)](https://travis-ci.org/apache/shardingsphere)
-[![Coverage 
Status](https://coveralls.io/repos/github/apache/shardingsphere/badge.svg?branch=dev)](https://coveralls.io/github/apache/shardingsphere?branch=dev)
+[![codecov](https://codecov.io/gh/apache/shardingsphere/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/shardingsphere)
 [![Codacy 
Badge](https://api.codacy.com/project/badge/Grade/278600ed40ad48e988ab485b439abbcd)](https://www.codacy.com/app/terrymanu/sharding-sphere?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=sharding-sphere/sharding-sphere&amp;utm_campaign=Badge_Grade)
 [![OpenTracing-1.0 
Badge](https://img.shields.io/badge/OpenTracing--1.0-enabled-blue.svg)](http://opentracing.io)
 [![Skywalking 
Tracing](https://img.shields.io/badge/Skywalking%20Tracing-enable-brightgreen.svg)](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;
     }
 }

Reply via email to