@@ -187,15 +187,15 @@ TEST_F(test_linting_lsp_server, initialize_with_different_request_ids) {
187187
188188 // TODO(strager): Support numbers with fractional parts, such as 12.34.
189189 for (const test_case& test : {
190- test_case{u8" null" , ::boost::json::value ()},
191- test_case{u8" 1" , ::boost::json::value (1 )},
192- test_case{u8" 9007199254740991" ,
190+ test_case{u8" null" _sv , ::boost::json::value ()},
191+ test_case{u8" 1" _sv , ::boost::json::value (1 )},
192+ test_case{u8" 9007199254740991" _sv ,
193193 ::boost::json::value (std::int64_t {9007199254740991LL })},
194- test_case{u8" -12345" , ::boost::json::value (-12345 )},
195- test_case{u8R"( "A")" , ::boost::json::value (" A" )},
196- test_case{u8R"( "id value goes \"here\"")" ,
194+ test_case{u8" -12345" _sv , ::boost::json::value (-12345 )},
195+ test_case{u8R"( "A")" _sv , ::boost::json::value (" A" )},
196+ test_case{u8R"( "id value goes \"here\"")" _sv ,
197197 ::boost::json::value (" id value goes \" here\" " )},
198- test_case{u8R"( "id value goes \"here\"")" ,
198+ test_case{u8R"( "id value goes \"here\"")" _sv ,
199199 ::boost::json::value (" id value goes \" here\" " )},
200200 }) {
201201 SCOPED_TRACE (out_string8 (test.id_json ));
@@ -518,8 +518,8 @@ TEST_F(test_linting_lsp_server, opening_document_lints) {
518518 padded_string_view code, string8_view uri_json,
519519 string8_view version,
520520 byte_buffer& notification_json) {
521- EXPECT_EQ (code, u8" let x = x;" );
522- EXPECT_EQ (uri_json, u8" \" file:///test.js\" " );
521+ EXPECT_EQ (code, u8" let x = x;" _sv );
522+ EXPECT_EQ (uri_json, u8" \" file:///test.js\" " _sv );
523523 EXPECT_EQ (version, u8" 10" sv);
524524
525525 notification_json.append_copy (
@@ -824,7 +824,7 @@ TEST_F(test_linting_lsp_server,
824824
825825TEST_F (test_linting_lsp_server, linting_uses_config_from_file) {
826826 this ->fs .create_file (this ->fs .rooted (" quick-lint-js.config" ),
827- u8R"( {"globals": {"testGlobalVariable": true}})" );
827+ u8R"( {"globals": {"testGlobalVariable": true}})" _sv );
828828
829829 this ->lint_callback = [&](configuration& config, linter_options,
830830 padded_string_view, string8_view, string8_view,
@@ -944,7 +944,7 @@ TEST_F(
944944TEST_F (test_linting_lsp_server,
945945 linting_uses_config_from_file_with_special_chars_in_document_uri) {
946946 this ->fs .create_file (this ->fs .rooted (" a%b~/quick-lint-js.config" ),
947- u8R"( {"globals": {"testGlobalVariable": true}})" );
947+ u8R"( {"globals": {"testGlobalVariable": true}})" _sv );
948948
949949 this ->lint_callback = [&](configuration& config, linter_options,
950950 padded_string_view, string8_view, string8_view,
@@ -979,7 +979,7 @@ TEST_F(test_linting_lsp_server, linting_uses_already_opened_config_file) {
979979 };
980980
981981 this ->fs .create_file (this ->fs .rooted (" quick-lint-js.config" ),
982- u8R"( {"globals": {"modified": false}})" );
982+ u8R"( {"globals": {"modified": false}})" _sv );
983983 this ->server ->append (
984984 make_message (concat (u8R"( {
985985 "jsonrpc": "2.0",
@@ -1024,7 +1024,7 @@ TEST_F(test_linting_lsp_server,
10241024 };
10251025
10261026 this ->fs .create_file (this ->fs .rooted (" quick-lint-js.config" ),
1027- u8R"( {"globals": {"haveOuterConfig": false}})" );
1027+ u8R"( {"globals": {"haveOuterConfig": false}})" _sv );
10281028 this ->server ->append (
10291029 make_message (concat (u8R"( {
10301030 "jsonrpc": "2.0",
@@ -1075,7 +1075,7 @@ TEST_F(test_linting_lsp_server, editing_config_relints_open_js_file) {
10751075 };
10761076
10771077 this ->fs .create_file (this ->fs .rooted (" quick-lint-js.config" ),
1078- u8R"( {"globals": {"before": true}})" );
1078+ u8R"( {"globals": {"before": true}})" _sv );
10791079 this ->server ->append (
10801080 make_message (concat (u8R"( {
10811081 "jsonrpc": "2.0",
@@ -1136,7 +1136,7 @@ TEST_F(test_linting_lsp_server, editing_config_relints_open_js_file) {
11361136TEST_F (test_linting_lsp_server,
11371137 editing_config_lints_latest_version_of_js_file) {
11381138 this ->fs .create_file (this ->fs .rooted (" quick-lint-js.config" ),
1139- u8R"( {"globals": {"before": true}})" );
1139+ u8R"( {"globals": {"before": true}})" _sv );
11401140 this ->server ->append (
11411141 make_message (concat (u8R"( {
11421142 "jsonrpc": "2.0",
@@ -1245,7 +1245,7 @@ TEST_F(test_linting_lsp_server, editing_config_relints_many_open_js_files) {
12451245 };
12461246
12471247 this ->fs .create_file (this ->fs .rooted (" quick-lint-js.config" ),
1248- u8R"( {"globals": {"before": true}})" );
1248+ u8R"( {"globals": {"before": true}})" _sv );
12491249 this ->server ->append (
12501250 make_message (concat (u8R"( {
12511251 "jsonrpc": "2.0",
@@ -1262,7 +1262,7 @@ TEST_F(test_linting_lsp_server, editing_config_relints_many_open_js_files) {
12621262 }
12631263 })" _sv)));
12641264
1265- for (const char8* js_file : {u8" a.js" , u8" b.js" , u8" c.js" }) {
1265+ for (string8_view js_file : {u8" a.js" _sv , u8" b.js" _sv , u8" c.js" _sv }) {
12661266 this ->server ->append (
12671267 make_message (concat (u8R"( {
12681268 "jsonrpc": "2.0",
@@ -1387,7 +1387,7 @@ TEST_F(test_linting_lsp_server, editing_config_relints_only_affected_js_files) {
13871387 }
13881388 })" _sv)));
13891389
1390- for (const char8* js_file : {u8" dir-a/test.js" , u8" dir-b/test.js" }) {
1390+ for (string8_view js_file : {u8" dir-a/test.js" _sv , u8" dir-b/test.js" _sv }) {
13911391 this ->server ->append (
13921392 make_message (concat (u8R"( {
13931393 "jsonrpc": "2.0",
@@ -1558,7 +1558,7 @@ TEST_F(test_linting_lsp_server, opening_config_relints_open_js_files) {
15581558 };
15591559
15601560 this ->fs .create_file (this ->fs .rooted (" quick-lint-js.config" ),
1561- u8R"( {"globals": {"before": true}})" );
1561+ u8R"( {"globals": {"before": true}})" _sv );
15621562 this ->server ->append (
15631563 make_message (concat (u8R"( {
15641564 "jsonrpc": "2.0",
@@ -1596,7 +1596,7 @@ TEST_F(test_linting_lsp_server, opening_config_relints_open_js_files) {
15961596TEST_F (test_linting_lsp_server,
15971597 changing_config_on_filesystem_relints_open_js_files) {
15981598 this ->fs .create_file (this ->fs .rooted (" quick-lint-js.config" ),
1599- u8R"( {"globals": {"before": true}})" );
1599+ u8R"( {"globals": {"before": true}})" _sv );
16001600 this ->server ->append (
16011601 make_message (concat (u8R"( {
16021602 "jsonrpc": "2.0",
@@ -1640,7 +1640,7 @@ TEST_F(test_linting_lsp_server,
16401640 this ->client ->messages .clear ();
16411641
16421642 this ->fs .create_file (this ->fs .rooted (" quick-lint-js.config" ),
1643- u8R"( {"globals": {"after": true}})" );
1643+ u8R"( {"globals": {"after": true}})" _sv );
16441644 this ->handler ->filesystem_changed ();
16451645 this ->handler ->flush_pending_notifications (*this ->client );
16461646
@@ -1664,7 +1664,7 @@ TEST_F(
16641664 };
16651665
16661666 this ->fs .create_file (this ->fs .rooted (" quick-lint-js.config" ),
1667- u8R"( {"globals": {"v1": true}})" );
1667+ u8R"( {"globals": {"v1": true}})" _sv );
16681668 this ->server ->append (
16691669 make_message (concat (u8R"( {
16701670 "jsonrpc": "2.0",
@@ -1714,7 +1714,7 @@ TEST_F(
17141714TEST_F (test_linting_lsp_server,
17151715 closing_open_config_reloads_config_from_filesystem) {
17161716 this ->fs .create_file (this ->fs .rooted (" quick-lint-js.config" ),
1717- u8R"( {"globals": {"configFromFilesystem": true}})" );
1717+ u8R"( {"globals": {"configFromFilesystem": true}})" _sv );
17181718 this ->server ->append (
17191719 make_message (concat (u8R"( {
17201720 "jsonrpc": "2.0",
@@ -1914,7 +1914,7 @@ TEST_F(test_linting_lsp_server,
19141914
19151915TEST_F (test_linting_lsp_server, making_config_file_unreadable_relints) {
19161916 this ->fs .create_file (this ->fs .rooted (" quick-lint-js.config" ),
1917- u8R"( {"globals": {"configFromFilesystem": true}})" );
1917+ u8R"( {"globals": {"configFromFilesystem": true}})" _sv );
19181918
19191919 this ->server ->append (
19201920 make_message (concat (u8R"( {
0 commit comments