Skip to content

Commit e430f65

Browse files
committed
ci: Exclude Debug implementations from coverage reports
We don't really want to check for exact representations, and otherwise they are really just invoked in tests that fail.
1 parent 441626b commit e430f65

File tree

7 files changed

+9
-0
lines changed

7 files changed

+9
-0
lines changed

crates/matrix-sdk-base/src/session.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ impl Session {
6868
}
6969
}
7070

71+
#[cfg(not(tarpaulin_include))]
7172
impl fmt::Debug for Session {
7273
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
7374
f.debug_struct("Session")

crates/matrix-sdk-base/src/store/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ impl Store {
642642
}
643643
}
644644

645+
#[cfg(not(tarpaulin_include))]
645646
impl fmt::Debug for Store {
646647
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
647648
f.debug_struct("Store")

crates/matrix-sdk-crypto/src/store/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ impl RecoveryKey {
195195
}
196196
}
197197

198+
#[cfg(not(tarpaulin_include))]
198199
impl Debug for RecoveryKey {
199200
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
200201
f.debug_struct("RecoveryKey").finish()
@@ -245,6 +246,7 @@ pub struct CrossSigningKeyExport {
245246
pub user_signing_key: Option<String>,
246247
}
247248

249+
#[cfg(not(tarpaulin_include))]
248250
impl Debug for CrossSigningKeyExport {
249251
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
250252
f.debug_struct("CrossSigningKeyExport")

crates/matrix-sdk-sqlite/src/crypto_store.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ pub struct SqliteCryptoStore {
6767
session_cache: SessionStore,
6868
}
6969

70+
#[cfg(not(tarpaulin_include))]
7071
impl fmt::Debug for SqliteCryptoStore {
7172
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
7273
if let Some(path) = &self.path {

crates/matrix-sdk/src/client/builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ enum BuilderStoreConfig {
484484
Custom(StoreConfig),
485485
}
486486

487+
#[cfg(not(tarpaulin_include))]
487488
impl fmt::Debug for BuilderStoreConfig {
488489
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
489490
#[allow(clippy::infallible_destructuring_match)]

crates/matrix-sdk/src/config/sync.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ impl Default for SyncSettings {
3434
}
3535
}
3636

37+
#[cfg(not(tarpaulin_include))]
3738
impl fmt::Debug for SyncSettings {
3839
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
3940
let mut s = f.debug_struct("SyncSettings");

crates/matrix-sdk/src/room/timeline/event_item.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ impl From<RemoteEventTimelineItem> for EventTimelineItem {
338338
}
339339
}
340340

341+
#[cfg(not(tarpaulin_include))]
341342
impl fmt::Debug for RemoteEventTimelineItem {
342343
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
343344
f.debug_struct("RemoteEventTimelineItem")
@@ -509,6 +510,7 @@ impl Message {
509510
}
510511
}
511512

513+
#[cfg(not(tarpaulin_include))]
512514
impl fmt::Debug for Message {
513515
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
514516
// since timeline items are logged, don't include all fields here so

0 commit comments

Comments
 (0)