You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2020/04/21 13:23:28 UTC

[incubator-doris] branch master updated: [UnitTest] Modify test to be compatible with coverage tool (#3366)

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

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c53e0f  [UnitTest] Modify test to be compatible with coverage tool (#3366)
5c53e0f is described below

commit 5c53e0fee7cd3050c7649f81387817c26d4cdbf1
Author: jmk1011 <jm...@gmail.com>
AuthorDate: Tue Apr 21 21:23:17 2020 +0800

    [UnitTest] Modify test to be compatible with coverage tool (#3366)
    
    C ++ R syntax is not compatible with coverage tools, so modify the syntax for test case.
---
 be/test/common/config_test.cpp | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/be/test/common/config_test.cpp b/be/test/common/config_test.cpp
index a6d36ae..146805f 100644
--- a/be/test/common/config_test.cpp
+++ b/be/test/common/config_test.cpp
@@ -49,22 +49,7 @@ TEST_F(ConfigTest, DumpAllConfigs) {
     for (const auto& it : *(config::full_conf_map)) {
         ss << it.first << "=" << it.second << std::endl;
     }
-    ASSERT_EQ(
-            R"*(cfg_bool_false=0
-cfg_bool_true=1
-cfg_double=123.456
-cfg_int16_t=2561
-cfg_int32_t=65536123
-cfg_int64_t=4294967296123
-cfg_std_string=doris_config_test_string
-cfg_std_vector_bool=1, 0, 1
-cfg_std_vector_double=123.456, 123.457, 123.457
-cfg_std_vector_int16_t=2561, 2562, 2563
-cfg_std_vector_int32_t=65536123, 65536234, 65536345
-cfg_std_vector_int64_t=4294967296123, 4294967296234, 4294967296345
-cfg_std_vector_std_string=doris, config, test, string
-)*",
-            ss.str());
+    ASSERT_EQ("cfg_bool_false=0\ncfg_bool_true=1\ncfg_double=123.456\ncfg_int16_t=2561\ncfg_int32_t=65536123\ncfg_int64_t=4294967296123\ncfg_std_string=doris_config_test_string\ncfg_std_vector_bool=1, 0, 1\ncfg_std_vector_double=123.456, 123.457, 123.457\ncfg_std_vector_int16_t=2561, 2562, 2563\ncfg_std_vector_int32_t=65536123, 65536234, 65536345\ncfg_std_vector_int64_t=4294967296123, 4294967296234, 4294967296345\ncfg_std_vector_std_string=doris, config, test, string\n", ss.str());
 }
 
 TEST_F(ConfigTest, UpdateConfigs) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org