@@ -67,6 +67,7 @@ mod tests {
67
67
use std:: future:: ready;
68
68
use std:: time:: SystemTime ;
69
69
70
+ #[ cfg_attr( coverage_nightly, coverage( off) ) ]
70
71
fn create_mock_span_data ( ) -> SpanData {
71
72
let span_context: SpanContext = SpanContext :: new (
72
73
TraceId :: from_u128 ( 1 ) ,
@@ -102,6 +103,7 @@ mod tests {
102
103
#[ derive( Debug ) ]
103
104
struct TestExporter { }
104
105
106
+ #[ cfg_attr( coverage_nightly, coverage( off) ) ]
105
107
impl SpanExporter for TestExporter {
106
108
fn export ( & self , batch : Vec < SpanData > ) -> impl Future < Output = OTelSdkResult > + Send {
107
109
batch. into_iter ( ) . for_each ( |span| {
@@ -145,6 +147,7 @@ mod tests {
145
147
#[ derive( Debug ) ]
146
148
struct TestExporter { }
147
149
150
+ #[ cfg_attr( coverage_nightly, coverage( off) ) ]
148
151
impl SpanExporter for TestExporter {
149
152
fn export ( & self , _batch : Vec < SpanData > ) -> impl Future < Output = OTelSdkResult > + Send {
150
153
ready ( Err ( OTelSdkError :: InternalFailure (
@@ -176,6 +179,7 @@ mod tests {
176
179
#[ derive( Debug ) ]
177
180
struct TestExporter { }
178
181
182
+ #[ cfg_attr( coverage_nightly, coverage( off) ) ]
179
183
impl SpanExporter for TestExporter {
180
184
fn export ( & self , _batch : Vec < SpanData > ) -> impl Future < Output = OTelSdkResult > + Send {
181
185
ready ( Err ( OTelSdkError :: InternalFailure (
@@ -207,6 +211,7 @@ mod tests {
207
211
#[ derive( Debug ) ]
208
212
struct TestExporter { }
209
213
214
+ #[ cfg_attr( coverage_nightly, coverage( off) ) ]
210
215
impl SpanExporter for TestExporter {
211
216
fn export ( & self , _batch : Vec < SpanData > ) -> impl Future < Output = OTelSdkResult > + Send {
212
217
ready ( Err ( OTelSdkError :: InternalFailure (
0 commit comments