@@ -3,7 +3,7 @@ extern crate influxdb;
33#[ path = "./utilities.rs" ]
44mod utilities;
55
6- use serde :: Deserialize ;
6+ use serde_derive :: Deserialize ;
77use utilities:: {
88 assert_result_err, assert_result_ok, create_client, create_db, delete_db, run_test,
99} ;
@@ -277,7 +277,7 @@ async fn test_write_and_read_field() {
277277///
278278/// This test case tests the authentication on json reads
279279#[ async_std:: test]
280- #[ cfg( feature = "use- serde" ) ]
280+ #[ cfg( feature = "serde" ) ]
281281#[ cfg( not( tarpaulin_include) ) ]
282282async fn test_json_non_authed_read ( ) {
283283 const TEST_NAME : & str = "test_json_non_authed_read" ;
@@ -322,7 +322,7 @@ async fn test_json_non_authed_read() {
322322///
323323/// This test case tests the authentication on json reads
324324#[ async_std:: test]
325- #[ cfg( feature = "use- serde" ) ]
325+ #[ cfg( feature = "serde" ) ]
326326#[ cfg( not( tarpaulin_include) ) ]
327327async fn test_json_authed_read ( ) {
328328 const TEST_NAME : & str = "test_json_authed_read" ;
@@ -359,11 +359,9 @@ async fn test_json_authed_read() {
359359///
360360/// This integration tests that writing data and retrieving the data again is working
361361#[ async_std:: test]
362- #[ cfg( feature = "use- serde" ) ]
362+ #[ cfg( feature = "serde" ) ]
363363#[ cfg( not( tarpaulin_include) ) ]
364364async fn test_write_and_read_option ( ) {
365- use serde:: Deserialize ;
366-
367365 const TEST_NAME : & str = "test_write_and_read_option" ;
368366
369367 run_test (
@@ -420,11 +418,9 @@ async fn test_write_and_read_option() {
420418/// This test case tests whether JSON can be decoded from a InfluxDB response and whether that JSON
421419/// is equal to the data which was written to the database
422420#[ async_std:: test]
423- #[ cfg( feature = "use- serde" ) ]
421+ #[ cfg( feature = "serde" ) ]
424422#[ cfg( not( tarpaulin_include) ) ]
425423async fn test_json_query ( ) {
426- use serde:: Deserialize ;
427-
428424 const TEST_NAME : & str = "test_json_query" ;
429425
430426 run_test (
@@ -472,11 +468,9 @@ async fn test_json_query() {
472468/// This test case tests whether the response to a GROUP BY can be parsed by
473469/// deserialize_next_tagged into a tags struct
474470#[ async_std:: test]
475- #[ cfg( feature = "use- serde" ) ]
471+ #[ cfg( feature = "serde" ) ]
476472#[ cfg( not( tarpaulin_include) ) ]
477473async fn test_json_query_tagged ( ) {
478- use serde:: Deserialize ;
479-
480474 const TEST_NAME : & str = "test_json_query_tagged" ;
481475
482476 run_test (
@@ -538,12 +532,10 @@ async fn test_json_query_tagged() {
538532/// (tested with tokio)
539533#[ tokio:: test]
540534#[ cfg( all(
541- feature = "use- serde" ,
535+ feature = "serde" ,
542536 not( any( tarpaulin_include, feature = "hyper-client" ) )
543537) ) ]
544538async fn test_json_query_vec ( ) {
545- use serde:: Deserialize ;
546-
547539 const TEST_NAME : & str = "test_json_query_vec" ;
548540
549541 run_test (
@@ -590,11 +582,9 @@ async fn test_json_query_vec() {
590582///
591583/// This integration test tests whether using the wrong query method fails building the query
592584#[ async_std:: test]
593- #[ cfg( feature = "use- serde" ) ]
585+ #[ cfg( feature = "serde" ) ]
594586#[ cfg( not( tarpaulin_include) ) ]
595587async fn test_serde_multi_query ( ) {
596- use serde:: Deserialize ;
597-
598588 const TEST_NAME : & str = "test_serde_multi_query" ;
599589
600590 run_test (
@@ -666,7 +656,7 @@ async fn test_serde_multi_query() {
666656///
667657/// This integration test tests whether using the wrong query method fails building the query
668658#[ async_std:: test]
669- #[ cfg( feature = "use- serde" ) ]
659+ #[ cfg( feature = "serde" ) ]
670660#[ cfg( not( tarpaulin_include) ) ]
671661async fn test_wrong_query_errors ( ) {
672662 let client = create_client ( "test_name" ) ;
0 commit comments