@@ -151,7 +151,7 @@ TEST_F(Test_Linting_LSP_Server, initialize) {
151
151
this ->server ->flush_error_responses (*this ->client );
152
152
this ->handler ->flush_pending_notifications (*this ->client );
153
153
154
- std::vector< ::boost::json::object> responses = this ->client ->responses ();
154
+ std::vector<::boost::json::object> responses = this ->client ->responses ();
155
155
ASSERT_EQ (responses.size (), 1 );
156
156
::boost::json::object response = responses[0 ];
157
157
EXPECT_EQ (response[" id" ], 1 );
@@ -215,7 +215,7 @@ TEST_F(Test_Linting_LSP_Server, initialize_with_different_request_ids) {
215
215
this ->server ->flush_error_responses (*this ->client );
216
216
this ->handler ->flush_pending_notifications (*this ->client );
217
217
218
- std::vector< ::boost::json::object> responses = this ->client ->responses ();
218
+ std::vector<::boost::json::object> responses = this ->client ->responses ();
219
219
ASSERT_EQ (responses.size (), 1 );
220
220
EXPECT_EQ (responses[0 ][" id" ], test.id );
221
221
}
@@ -243,7 +243,7 @@ TEST_F(Test_Linting_LSP_Server, loads_config_after_client_initialization) {
243
243
this ->server ->flush_error_responses (*this ->client );
244
244
this ->handler ->flush_pending_notifications (*this ->client );
245
245
246
- std::vector< ::boost::json::object> requests = this ->client ->requests ();
246
+ std::vector<::boost::json::object> requests = this ->client ->requests ();
247
247
ASSERT_EQ (requests.size (), 1 );
248
248
::boost::json::object request = requests[0 ];
249
249
EXPECT_EQ (look_up (request, " method" ), " workspace/configuration" );
@@ -269,7 +269,7 @@ TEST_F(Test_Linting_LSP_Server, stores_config_values_after_config_response) {
269
269
this ->server ->flush_error_responses (*this ->client );
270
270
this ->handler ->flush_pending_notifications (*this ->client );
271
271
272
- std::vector< ::boost::json::object> requests = this ->client ->requests ();
272
+ std::vector<::boost::json::object> requests = this ->client ->requests ();
273
273
ASSERT_EQ (requests.size (), 1 );
274
274
::boost::json::object config_request = requests[0 ];
275
275
::boost::json::value config_request_id = look_up (config_request, " id" );
@@ -322,7 +322,7 @@ TEST_F(Test_Linting_LSP_Server, config_can_be_set_with_initialize_request) {
322
322
this ->server ->flush_error_responses (*this ->client );
323
323
this ->handler ->flush_pending_notifications (*this ->client );
324
324
325
- std::vector< ::boost::json::object> responses = this ->client ->responses ();
325
+ std::vector<::boost::json::object> responses = this ->client ->responses ();
326
326
ASSERT_EQ (responses.size (), 1 );
327
327
EXPECT_EQ (responses[0 ][" id" ], 100 );
328
328
@@ -485,7 +485,7 @@ TEST_F(Test_Linting_LSP_Server, shutdown) {
485
485
this ->server ->flush_error_responses (*this ->client );
486
486
this ->handler ->flush_pending_notifications (*this ->client );
487
487
488
- std::vector< ::boost::json::object> responses = this ->client ->responses ();
488
+ std::vector<::boost::json::object> responses = this ->client ->responses ();
489
489
ASSERT_EQ (responses.size (), 1 );
490
490
::boost::json::object response = responses[0 ];
491
491
EXPECT_EQ (response[" id" ], 10 );
@@ -593,7 +593,7 @@ TEST_F(Test_Linting_LSP_Server, opening_document_lints) {
593
593
this ->server ->flush_error_responses (*this ->client );
594
594
this ->handler ->flush_pending_notifications (*this ->client );
595
595
596
- std::vector< ::boost::json::object> notifications =
596
+ std::vector<::boost::json::object> notifications =
597
597
this ->client ->notifications ();
598
598
ASSERT_EQ (notifications.size (), 1 );
599
599
::boost::json::object response = notifications[0 ];
@@ -1693,7 +1693,7 @@ TEST_F(Test_Linting_LSP_Server,
1693
1693
1694
1694
EXPECT_TRUE (after_config_was_loaded);
1695
1695
1696
- std::vector< ::boost::json::object> notifications =
1696
+ std::vector<::boost::json::object> notifications =
1697
1697
this ->client ->notifications ();
1698
1698
ASSERT_THAT (notifications, ElementsAreArray ({::testing::_}));
1699
1699
::boost::json::object notification = notifications[0 ];
@@ -1885,7 +1885,7 @@ TEST_F(Test_Linting_LSP_Server, opening_js_file_with_unreadable_config_lints) {
1885
1885
EXPECT_THAT (this ->lint_calls , ElementsAreArray ({u8" testjs" }))
1886
1886
<< " should have linted despite config file being unloadable" ;
1887
1887
1888
- std::vector< ::boost::json::object> notifications =
1888
+ std::vector<::boost::json::object> notifications =
1889
1889
this ->client ->notifications ();
1890
1890
ASSERT_EQ (notifications.size (), 2 );
1891
1891
std::size_t showMessageIndex =
@@ -1949,7 +1949,7 @@ TEST_F(Test_Linting_LSP_Server,
1949
1949
EXPECT_THAT (this ->lint_calls , ElementsAreArray ({u8" testjs" }))
1950
1950
<< " should have linted despite config file being unloadable" ;
1951
1951
1952
- std::vector< ::boost::json::object> notifications =
1952
+ std::vector<::boost::json::object> notifications =
1953
1953
this ->client ->notifications ();
1954
1954
ASSERT_EQ (notifications.size (), 2 );
1955
1955
std::size_t showMessageIndex =
@@ -2024,7 +2024,7 @@ TEST_F(Test_Linting_LSP_Server, making_config_file_unreadable_relints) {
2024
2024
<< " should have linted twice: once on open, and once after config file "
2025
2025
" changed" ;
2026
2026
2027
- std::vector< ::boost::json::object> notifications =
2027
+ std::vector<::boost::json::object> notifications =
2028
2028
this ->client ->notifications ();
2029
2029
ASSERT_EQ (notifications.size (), 2 );
2030
2030
std::size_t showMessageIndex =
@@ -2057,7 +2057,7 @@ TEST_F(Test_Linting_LSP_Server, opening_broken_config_file_shows_diagnostics) {
2057
2057
this ->server ->flush_error_responses (*this ->client );
2058
2058
this ->handler ->flush_pending_notifications (*this ->client );
2059
2059
2060
- std::vector< ::boost::json::object> notifications =
2060
+ std::vector<::boost::json::object> notifications =
2061
2061
this ->client ->notifications ();
2062
2062
ASSERT_EQ (notifications.size (), 1 );
2063
2063
::boost::json::object response = notifications[0 ];
@@ -2122,7 +2122,7 @@ TEST_F(Test_Linting_LSP_Server,
2122
2122
this ->server ->flush_error_responses (*this ->client );
2123
2123
this ->handler ->flush_pending_notifications (*this ->client );
2124
2124
2125
- std::vector< ::boost::json::object> notifications =
2125
+ std::vector<::boost::json::object> notifications =
2126
2126
this ->client ->notifications ();
2127
2127
ASSERT_EQ (notifications.size (), 1 );
2128
2128
::boost::json::object response = notifications[0 ];
@@ -2355,7 +2355,7 @@ TEST_F(Test_Linting_LSP_Server, showing_io_errors_shows_only_first) {
2355
2355
});
2356
2356
this ->handler ->flush_pending_notifications (*this ->client );
2357
2357
2358
- std::vector< ::boost::json::object> notifications =
2358
+ std::vector<::boost::json::object> notifications =
2359
2359
this ->client ->notifications ();
2360
2360
ASSERT_EQ (notifications.size (), 1 );
2361
2361
::boost::json::object show_message_message = notifications[0 ];
@@ -2385,7 +2385,7 @@ TEST_F(Test_Linting_LSP_Server, showing_io_errors_shows_only_first_ever) {
2385
2385
});
2386
2386
this ->handler ->flush_pending_notifications (*this ->client );
2387
2387
2388
- std::vector< ::boost::json::object> notifications =
2388
+ std::vector<::boost::json::object> notifications =
2389
2389
this ->client ->notifications ();
2390
2390
ASSERT_EQ (notifications.size (), 1 );
2391
2391
::boost::json::object show_message_message = notifications[0 ];
@@ -2437,7 +2437,7 @@ TEST_F(Test_Linting_LSP_Server, unimplemented_method_in_request_returns_error) {
2437
2437
this ->server ->flush_error_responses (*this ->client );
2438
2438
this ->handler ->flush_pending_notifications (*this ->client );
2439
2439
2440
- std::vector< ::boost::json::object> responses = this ->client ->responses ();
2440
+ std::vector<::boost::json::object> responses = this ->client ->responses ();
2441
2441
ASSERT_EQ (responses.size (), 1 );
2442
2442
::boost::json::object response = responses[0 ];
2443
2443
EXPECT_EQ (look_up (response, " id" ), 10 );
@@ -2650,7 +2650,7 @@ TEST(Test_LSP_JavaScript_Linter,
2650
2650
server.flush_error_responses (client);
2651
2651
handler.flush_pending_notifications (client);
2652
2652
2653
- std::vector< ::boost::json::object> notifications = client.notifications ();
2653
+ std::vector<::boost::json::object> notifications = client.notifications ();
2654
2654
ASSERT_EQ (notifications.size (), 1 );
2655
2655
::boost::json::object notification = notifications[0 ];
2656
2656
EXPECT_EQ (look_up (notification, " method" ), " textDocument/publishDiagnostics" );
@@ -2683,7 +2683,7 @@ TEST(Test_LSP_JavaScript_Linter,
2683
2683
server.flush_error_responses (client);
2684
2684
handler.flush_pending_notifications (client);
2685
2685
2686
- std::vector< ::boost::json::object> notifications = client.notifications ();
2686
+ std::vector<::boost::json::object> notifications = client.notifications ();
2687
2687
ASSERT_EQ (notifications.size (), 1 );
2688
2688
::boost::json::object notification = notifications[0 ];
2689
2689
EXPECT_EQ (look_up (notification, " method" ), " textDocument/publishDiagnostics" );
0 commit comments