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

jiahuili430 pushed a commit to branch fix-elixir-tests
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit c27c39158f21dc50c7a7bb363a32b3216d0b9e23
Author: Jiahui Li <[email protected]>
AuthorDate: Fri Dec 12 08:58:46 2025 -0600

    Fix Elixir test warnings
    
    - warning: variable "db" is unused (if the variable is not meant
      to be used, prefix it with an underscore)
            - friend_docs.ex
            - limit_docs.ex
    
    - warning: using single-quoted strings to represent charlists is
      deprecated. Use ~c"" if you indeed want a charlist or use ""
      instead.
      - user_docs.ex
---
 test/elixir/test/support/friend_docs.ex | 2 +-
 test/elixir/test/support/limit_docs.ex  | 2 +-
 test/elixir/test/support/user_docs.ex   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/elixir/test/support/friend_docs.ex 
b/test/elixir/test/support/friend_docs.ex
index 289bc999d..0e36af806 100644
--- a/test/elixir/test/support/friend_docs.ex
+++ b/test/elixir/test/support/friend_docs.ex
@@ -276,7 +276,7 @@ defmodule FriendDocs do
     :ok
   end
 
-  defp add_view_indexes(db) do
+  defp add_view_indexes(_db) do
     # TODO: this function is not defined in the Python version of this module?
   end
 
diff --git a/test/elixir/test/support/limit_docs.ex 
b/test/elixir/test/support/limit_docs.ex
index 5a474f2dd..4ae9a4c3d 100644
--- a/test/elixir/test/support/limit_docs.ex
+++ b/test/elixir/test/support/limit_docs.ex
@@ -102,7 +102,7 @@ defmodule LimitDocs do
     :ok
   end
 
-  defp add_view_indexes(db) do
+  defp add_view_indexes(_db) do
     # TODO: this function is not defined in the Python version of this module?
   end
 
diff --git a/test/elixir/test/support/user_docs.ex 
b/test/elixir/test/support/user_docs.ex
index eb015cc64..9836a4465 100644
--- a/test/elixir/test/support/user_docs.ex
+++ b/test/elixir/test/support/user_docs.ex
@@ -217,7 +217,7 @@ defmodule UserDocs do
       "twitter" => nil,
       "favorites" => ["Lisp", "Erlang", "Python"],
       "exists_array" => ["should", "exist", "array1"],
-      "complex_field_value" => '+-()%{}[]^~&&*||"\\/? =>!',
+      "complex_field_value" => ~c'+-()%{}[]^~&&*||"\\/? =>!',
       "ordered" => true,
     },
     %{

Reply via email to