@@ -13,6 +13,7 @@ use influxdb::{Client, Error, Query, Timestamp};
13
13
///
14
14
/// This test case tests whether the InfluxDB server can be connected to and gathers info about it - tested with async_std
15
15
#[ async_std:: test]
16
+ #[ cfg( not( tarpaulin_include) ) ]
16
17
async fn test_ping_influx_db_async_std ( ) {
17
18
let client = create_client ( "notusedhere" ) ;
18
19
let result = client. ping ( ) . await ;
@@ -29,6 +30,7 @@ async fn test_ping_influx_db_async_std() {
29
30
///
30
31
/// This test case tests whether the InfluxDB server can be connected to and gathers info about it * tested with tokio
31
32
#[ tokio:: test]
33
+ #[ cfg( not( tarpaulin_include) ) ]
32
34
async fn test_ping_influx_db_tokio ( ) {
33
35
let client = create_client ( "notusedhere" ) ;
34
36
let result = client. ping ( ) . await ;
@@ -45,6 +47,7 @@ async fn test_ping_influx_db_tokio() {
45
47
///
46
48
/// This test case tests connection error
47
49
#[ async_std:: test]
50
+ #[ cfg( not( tarpaulin_include) ) ]
48
51
async fn test_connection_error ( ) {
49
52
let test_name = "test_connection_error" ;
50
53
let client =
@@ -65,6 +68,7 @@ async fn test_connection_error() {
65
68
///
66
69
/// This test case tests the Authentication
67
70
#[ async_std:: test]
71
+ #[ cfg( not( tarpaulin_include) ) ]
68
72
async fn test_authed_write_and_read ( ) {
69
73
const TEST_NAME : & str = "test_authed_write_and_read" ;
70
74
@@ -112,6 +116,7 @@ async fn test_authed_write_and_read() {
112
116
///
113
117
/// This test case tests the Authentication
114
118
#[ async_std:: test]
119
+ #[ cfg( not( tarpaulin_include) ) ]
115
120
async fn test_wrong_authed_write_and_read ( ) {
116
121
const TEST_NAME : & str = "test_wrong_authed_write_and_read" ;
117
122
@@ -181,6 +186,7 @@ async fn test_wrong_authed_write_and_read() {
181
186
///
182
187
/// This test case tests the Authentication
183
188
#[ async_std:: test]
189
+ #[ cfg( not( tarpaulin_include) ) ]
184
190
async fn test_non_authed_write_and_read ( ) {
185
191
const TEST_NAME : & str = "test_non_authed_write_and_read" ;
186
192
@@ -235,6 +241,7 @@ async fn test_non_authed_write_and_read() {
235
241
///
236
242
/// This integration tests that writing data and retrieving the data again is working
237
243
#[ async_std:: test]
244
+ #[ cfg( not( tarpaulin_include) ) ]
238
245
async fn test_write_and_read_field ( ) {
239
246
const TEST_NAME : & str = "test_write_field" ;
240
247
@@ -268,6 +275,7 @@ async fn test_write_and_read_field() {
268
275
/// This integration tests that writing data and retrieving the data again is working
269
276
#[ async_std:: test]
270
277
#[ cfg( feature = "use-serde" ) ]
278
+ #[ cfg( not( tarpaulin_include) ) ]
271
279
async fn test_write_and_read_option ( ) {
272
280
use serde:: Deserialize ;
273
281
@@ -329,6 +337,7 @@ async fn test_write_and_read_option() {
329
337
/// is equal to the data which was written to the database
330
338
#[ async_std:: test]
331
339
#[ cfg( feature = "use-serde" ) ]
340
+ #[ cfg( not( tarpaulin_include) ) ]
332
341
async fn test_json_query ( ) {
333
342
use serde:: Deserialize ;
334
343
@@ -380,6 +389,7 @@ async fn test_json_query() {
380
389
// deserialize_next_tagged into a tags struct
381
390
#[ async_std:: test]
382
391
#[ cfg( feature = "use-serde" ) ]
392
+ #[ cfg( not( tarpaulin_include) ) ]
383
393
async fn test_json_query_tagged ( ) {
384
394
use serde:: Deserialize ;
385
395
@@ -444,6 +454,7 @@ async fn test_json_query_tagged() {
444
454
/// (tested with tokio)
445
455
#[ tokio:: test]
446
456
#[ cfg( feature = "use-serde" ) ]
457
+ #[ cfg( not( tarpaulin_include) ) ]
447
458
async fn test_json_query_vec ( ) {
448
459
use serde:: Deserialize ;
449
460
@@ -494,6 +505,7 @@ async fn test_json_query_vec() {
494
505
/// This integration test tests whether using the wrong query method fails building the query
495
506
#[ async_std:: test]
496
507
#[ cfg( feature = "use-serde" ) ]
508
+ #[ cfg( not( tarpaulin_include) ) ]
497
509
async fn test_serde_multi_query ( ) {
498
510
use serde:: Deserialize ;
499
511
@@ -570,6 +582,7 @@ async fn test_serde_multi_query() {
570
582
/// This integration test tests whether using the wrong query method fails building the query
571
583
#[ async_std:: test]
572
584
#[ cfg( feature = "use-serde" ) ]
585
+ #[ cfg( not( tarpaulin_include) ) ]
573
586
async fn test_wrong_query_errors ( ) {
574
587
let client = create_client ( "test_name" ) ;
575
588
let result = client
0 commit comments