You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2021/10/24 05:34:46 UTC

[couchdb] branch mem3-coverage created (now 7c0f5cb)

This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a change to branch mem3-coverage
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at 7c0f5cb  Eliminate unused line

This branch includes the following new commits:

     new 6e95b72  Enable coverage for mem3 unit tests
     new 7c0f5cb  Eliminate unused line

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[couchdb] 01/02: Enable coverage for mem3 unit tests

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch mem3-coverage
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 6e95b727dc16e0d57408139952575b9151a3780f
Author: Jay Doane <ja...@apache.org>
AuthorDate: Sat Oct 23 17:14:30 2021 -0700

    Enable coverage for mem3 unit tests
---
 .gitignore            | 1 -
 src/mem3/rebar.config | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 3d49a33..d9f0d50 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,7 +32,6 @@ ebin/
 erl_crash.dump
 erln8.config
 install.mk
-rebar.config
 rel/*.config
 rel/couchdb
 rel/dev*
diff --git a/src/mem3/rebar.config b/src/mem3/rebar.config
new file mode 100644
index 0000000..e0d1844
--- /dev/null
+++ b/src/mem3/rebar.config
@@ -0,0 +1,2 @@
+{cover_enabled, true}.
+{cover_print_enabled, true}.

[couchdb] 02/02: Eliminate unused line

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch mem3-coverage
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 7c0f5cb218b709682e9ef1662142ee5ac4fe70a1
Author: Jay Doane <ja...@apache.org>
AuthorDate: Sat Oct 23 17:15:10 2021 -0700

    Eliminate unused line
    
    Fix unused variable compiler warning
---
 src/mem3/test/eunit/mem3_reshard_test.erl | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mem3/test/eunit/mem3_reshard_test.erl b/src/mem3/test/eunit/mem3_reshard_test.erl
index 1122590..65f2b4b 100644
--- a/src/mem3/test/eunit/mem3_reshard_test.erl
+++ b/src/mem3/test/eunit/mem3_reshard_test.erl
@@ -519,7 +519,6 @@ target_reset_in_initial_copy(#{db1 := Db}) ->
 
 split_an_incomplete_shard_map(#{db1 := Db}) ->
     {timeout, ?TIMEOUT, ?_test(begin
-        [#shard{} = Src] = lists:sort(mem3:local_shards(Db)),
         [#shard{name=Shard}] = lists:sort(mem3:local_shards(Db)),
         meck:expect(mem3_util, calculate_max_n, 1, 0),
         ?assertMatch({error, {not_enough_shard_copies, _}},