bneradt commented on code in PR #9919:
URL: https://github.com/apache/trafficserver/pull/9919#discussion_r1244205451


##########
proxy/logging/unit-tests/test_LogUtils.cc:
##########
@@ -150,52 +150,4 @@ TEST_CASE("get_unrolled_filename parses possible log files 
as expected", "[get_u
 
   constexpr ts::TextView no_dot = "logging_yaml";
   REQUIRE(get_unrolled_filename(no_dot) == no_dot);
-}
-
-TEST_CASE("LogUtils pure escapify url", "[pure_esc_url]")
-{
-  char input[][32] = {
-    " ",
-    "%",
-    "% ",
-    "%20",
-  };
-  const char *expected[] = {
-    "%20",
-    "%25",
-    "%25%20",
-    "%2520",
-  };
-  char output[128];
-  int output_len;
-
-  int n = sizeof(input) / sizeof(input[0]);
-  for (int i = 0; i < n; ++i) {
-    LogUtils::pure_escapify_url(NULL, input[i], std::strlen(input[i]), 
&output_len, output, 128);
-    CHECK(std::string_view(output) == expected[i]);
-  }
-}
-
-TEST_CASE("LogUtils escapify url", "[esc_url]")
-{
-  char input[][32] = {
-    " ",
-    "%",
-    "% ",
-    "%20",
-  };
-  const char *expected[] = {
-    "%20",
-    "%25",
-    "%25%20",
-    "%20",
-  };
-  char output[128];
-  int output_len;
-
-  int n = sizeof(input) / sizeof(input[0]);
-  for (int i = 0; i < n; ++i) {
-    LogUtils::escapify_url(NULL, input[i], std::strlen(input[i]), &output_len, 
output, 128);
-    CHECK(std::string_view(output) == expected[i]);
-  }
-}
+}

Review Comment:
   Github shows that this file doesn't have a trailing newline. Might want to 
update your editor to add those.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to