@@ -3,7 +3,7 @@ extern crate influxdb;
3
3
#[ path = "./utilities.rs" ]
4
4
mod utilities;
5
5
6
- use serde :: Deserialize ;
6
+ use serde_derive :: Deserialize ;
7
7
use utilities:: {
8
8
assert_result_err, assert_result_ok, create_client, create_db, delete_db, run_test,
9
9
} ;
@@ -277,7 +277,7 @@ async fn test_write_and_read_field() {
277
277
///
278
278
/// This test case tests the authentication on json reads
279
279
#[ async_std:: test]
280
- #[ cfg( feature = "use- serde" ) ]
280
+ #[ cfg( feature = "serde" ) ]
281
281
#[ cfg( not( tarpaulin_include) ) ]
282
282
async fn test_json_non_authed_read ( ) {
283
283
const TEST_NAME : & str = "test_json_non_authed_read" ;
@@ -322,7 +322,7 @@ async fn test_json_non_authed_read() {
322
322
///
323
323
/// This test case tests the authentication on json reads
324
324
#[ async_std:: test]
325
- #[ cfg( feature = "use- serde" ) ]
325
+ #[ cfg( feature = "serde" ) ]
326
326
#[ cfg( not( tarpaulin_include) ) ]
327
327
async fn test_json_authed_read ( ) {
328
328
const TEST_NAME : & str = "test_json_authed_read" ;
@@ -359,11 +359,9 @@ async fn test_json_authed_read() {
359
359
///
360
360
/// This integration tests that writing data and retrieving the data again is working
361
361
#[ async_std:: test]
362
- #[ cfg( feature = "use- serde" ) ]
362
+ #[ cfg( feature = "serde" ) ]
363
363
#[ cfg( not( tarpaulin_include) ) ]
364
364
async fn test_write_and_read_option ( ) {
365
- use serde:: Deserialize ;
366
-
367
365
const TEST_NAME : & str = "test_write_and_read_option" ;
368
366
369
367
run_test (
@@ -420,11 +418,9 @@ async fn test_write_and_read_option() {
420
418
/// This test case tests whether JSON can be decoded from a InfluxDB response and whether that JSON
421
419
/// is equal to the data which was written to the database
422
420
#[ async_std:: test]
423
- #[ cfg( feature = "use- serde" ) ]
421
+ #[ cfg( feature = "serde" ) ]
424
422
#[ cfg( not( tarpaulin_include) ) ]
425
423
async fn test_json_query ( ) {
426
- use serde:: Deserialize ;
427
-
428
424
const TEST_NAME : & str = "test_json_query" ;
429
425
430
426
run_test (
@@ -472,11 +468,9 @@ async fn test_json_query() {
472
468
/// This test case tests whether the response to a GROUP BY can be parsed by
473
469
/// deserialize_next_tagged into a tags struct
474
470
#[ async_std:: test]
475
- #[ cfg( feature = "use- serde" ) ]
471
+ #[ cfg( feature = "serde" ) ]
476
472
#[ cfg( not( tarpaulin_include) ) ]
477
473
async fn test_json_query_tagged ( ) {
478
- use serde:: Deserialize ;
479
-
480
474
const TEST_NAME : & str = "test_json_query_tagged" ;
481
475
482
476
run_test (
@@ -538,12 +532,10 @@ async fn test_json_query_tagged() {
538
532
/// (tested with tokio)
539
533
#[ tokio:: test]
540
534
#[ cfg( all(
541
- feature = "use- serde" ,
535
+ feature = "serde" ,
542
536
not( any( tarpaulin_include, feature = "hyper-client" ) )
543
537
) ) ]
544
538
async fn test_json_query_vec ( ) {
545
- use serde:: Deserialize ;
546
-
547
539
const TEST_NAME : & str = "test_json_query_vec" ;
548
540
549
541
run_test (
@@ -590,11 +582,9 @@ async fn test_json_query_vec() {
590
582
///
591
583
/// This integration test tests whether using the wrong query method fails building the query
592
584
#[ async_std:: test]
593
- #[ cfg( feature = "use- serde" ) ]
585
+ #[ cfg( feature = "serde" ) ]
594
586
#[ cfg( not( tarpaulin_include) ) ]
595
587
async fn test_serde_multi_query ( ) {
596
- use serde:: Deserialize ;
597
-
598
588
const TEST_NAME : & str = "test_serde_multi_query" ;
599
589
600
590
run_test (
@@ -666,7 +656,7 @@ async fn test_serde_multi_query() {
666
656
///
667
657
/// This integration test tests whether using the wrong query method fails building the query
668
658
#[ async_std:: test]
669
- #[ cfg( feature = "use- serde" ) ]
659
+ #[ cfg( feature = "serde" ) ]
670
660
#[ cfg( not( tarpaulin_include) ) ]
671
661
async fn test_wrong_query_errors ( ) {
672
662
let client = create_client ( "test_name" ) ;
0 commit comments