clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: Iceec1dc95b6c908ec6c21fb40093de9dd18bf11a
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/test/include/multipart_test.cpp b/test/include/multipart_test.cpp
index 59e8345..9e79dbd 100644
--- a/test/include/multipart_test.cpp
+++ b/test/include/multipart_test.cpp
@@ -265,12 +265,13 @@
TEST_F(MultipartTest, TestGoodMultipartParserMultipleHeaders)
{
- std::string_view body = "-----------------------------d74496d66958873e\r\n"
- "Content-Disposition: form-data; name=\"Test1\"\r\n"
- "Other-Header: value=\"v1\"\r\n"
- "\r\n"
- "Data1\r\n"
- "-----------------------------d74496d66958873e--";
+ std::string_view body =
+ "-----------------------------d74496d66958873e\r\n"
+ "Content-Disposition: form-data; name=\"Test1\"\r\n"
+ "Other-Header: value=\"v1\"\r\n"
+ "\r\n"
+ "Data1\r\n"
+ "-----------------------------d74496d66958873e--";
crow::Request reqIn(body, ec);
@@ -293,11 +294,12 @@
TEST_F(MultipartTest, TestErrorHeaderWithoutColon)
{
- std::string_view body = "----end\r\n"
- "abc\r\n"
- "\r\n"
- "Data1\r\n"
- "----end--\r\n";
+ std::string_view body =
+ "----end\r\n"
+ "abc\r\n"
+ "\r\n"
+ "Data1\r\n"
+ "----end--\r\n";
crow::Request reqIn(body, ec);
reqIn.addHeader("Content-Type", "multipart/form-data; "
@@ -353,10 +355,11 @@
TEST_F(MultipartTest, TestDataWithoutMimeFields)
{
- std::string_view body = "-----------------------------d74496d66958873e\r\n"
- "\r\n"
- "Data1\r\n"
- "-----------------------------d74496d66958873e--";
+ std::string_view body =
+ "-----------------------------d74496d66958873e\r\n"
+ "\r\n"
+ "Data1\r\n"
+ "-----------------------------d74496d66958873e--";
crow::Request reqIn(body, ec);
@@ -445,9 +448,10 @@
EXPECT_EQ(parser.mime_fields[0].fields.at("Content-Disposition"),
"form-data; name=\"Test1\"");
- EXPECT_EQ(parser.mime_fields[0].content, "Data1\r\n"
- "----XX-abc-\r\n"
- "StillData1");
+ EXPECT_EQ(parser.mime_fields[0].content,
+ "Data1\r\n"
+ "----XX-abc-\r\n"
+ "StillData1");
}
} // namespace