@@ -13,6 +13,7 @@ use influxdb::{Client, Error, Query, Timestamp};
1313///
1414/// This test case tests whether the InfluxDB server can be connected to and gathers info about it - tested with async_std
1515#[ async_std:: test]
16+ #[ cfg( not( tarpaulin_include) ) ]
1617async fn test_ping_influx_db_async_std ( ) {
1718 let client = create_client ( "notusedhere" ) ;
1819 let result = client. ping ( ) . await ;
@@ -29,6 +30,7 @@ async fn test_ping_influx_db_async_std() {
2930///
3031/// This test case tests whether the InfluxDB server can be connected to and gathers info about it * tested with tokio
3132#[ tokio:: test]
33+ #[ cfg( not( tarpaulin_include) ) ]
3234async fn test_ping_influx_db_tokio ( ) {
3335 let client = create_client ( "notusedhere" ) ;
3436 let result = client. ping ( ) . await ;
@@ -45,6 +47,7 @@ async fn test_ping_influx_db_tokio() {
4547///
4648/// This test case tests connection error
4749#[ async_std:: test]
50+ #[ cfg( not( tarpaulin_include) ) ]
4851async fn test_connection_error ( ) {
4952 let test_name = "test_connection_error" ;
5053 let client =
@@ -65,6 +68,7 @@ async fn test_connection_error() {
6568///
6669/// This test case tests the Authentication
6770#[ async_std:: test]
71+ #[ cfg( not( tarpaulin_include) ) ]
6872async fn test_authed_write_and_read ( ) {
6973 const TEST_NAME : & str = "test_authed_write_and_read" ;
7074
@@ -112,6 +116,7 @@ async fn test_authed_write_and_read() {
112116///
113117/// This test case tests the Authentication
114118#[ async_std:: test]
119+ #[ cfg( not( tarpaulin_include) ) ]
115120async fn test_wrong_authed_write_and_read ( ) {
116121 const TEST_NAME : & str = "test_wrong_authed_write_and_read" ;
117122
@@ -181,6 +186,7 @@ async fn test_wrong_authed_write_and_read() {
181186///
182187/// This test case tests the Authentication
183188#[ async_std:: test]
189+ #[ cfg( not( tarpaulin_include) ) ]
184190async fn test_non_authed_write_and_read ( ) {
185191 const TEST_NAME : & str = "test_non_authed_write_and_read" ;
186192
@@ -235,6 +241,7 @@ async fn test_non_authed_write_and_read() {
235241///
236242/// This integration tests that writing data and retrieving the data again is working
237243#[ async_std:: test]
244+ #[ cfg( not( tarpaulin_include) ) ]
238245async fn test_write_and_read_field ( ) {
239246 const TEST_NAME : & str = "test_write_field" ;
240247
@@ -268,6 +275,7 @@ async fn test_write_and_read_field() {
268275/// This integration tests that writing data and retrieving the data again is working
269276#[ async_std:: test]
270277#[ cfg( feature = "use-serde" ) ]
278+ #[ cfg( not( tarpaulin_include) ) ]
271279async fn test_write_and_read_option ( ) {
272280 use serde:: Deserialize ;
273281
@@ -329,6 +337,7 @@ async fn test_write_and_read_option() {
329337/// is equal to the data which was written to the database
330338#[ async_std:: test]
331339#[ cfg( feature = "use-serde" ) ]
340+ #[ cfg( not( tarpaulin_include) ) ]
332341async fn test_json_query ( ) {
333342 use serde:: Deserialize ;
334343
@@ -380,6 +389,7 @@ async fn test_json_query() {
380389// deserialize_next_tagged into a tags struct
381390#[ async_std:: test]
382391#[ cfg( feature = "use-serde" ) ]
392+ #[ cfg( not( tarpaulin_include) ) ]
383393async fn test_json_query_tagged ( ) {
384394 use serde:: Deserialize ;
385395
@@ -444,6 +454,7 @@ async fn test_json_query_tagged() {
444454/// (tested with tokio)
445455#[ tokio:: test]
446456#[ cfg( feature = "use-serde" ) ]
457+ #[ cfg( not( tarpaulin_include) ) ]
447458async fn test_json_query_vec ( ) {
448459 use serde:: Deserialize ;
449460
@@ -494,6 +505,7 @@ async fn test_json_query_vec() {
494505/// This integration test tests whether using the wrong query method fails building the query
495506#[ async_std:: test]
496507#[ cfg( feature = "use-serde" ) ]
508+ #[ cfg( not( tarpaulin_include) ) ]
497509async fn test_serde_multi_query ( ) {
498510 use serde:: Deserialize ;
499511
@@ -570,6 +582,7 @@ async fn test_serde_multi_query() {
570582/// This integration test tests whether using the wrong query method fails building the query
571583#[ async_std:: test]
572584#[ cfg( feature = "use-serde" ) ]
585+ #[ cfg( not( tarpaulin_include) ) ]
573586async fn test_wrong_query_errors ( ) {
574587 let client = create_client ( "test_name" ) ;
575588 let result = client
0 commit comments