Skip to content

Commit 13d627d

Browse files
committed
[object] argh, remove these tests for now no time for this
1 parent adba3b9 commit 13d627d

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

git-object/src/immutable/commit/mod.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,3 @@ impl<'a> Commit<'a> {
6262
crate::commit::ExtraHeaders::new(self.extra_headers.iter().map(|(k, v)| (*k, v.as_ref())))
6363
}
6464
}
65-
66-
#[cfg(test)]
67-
#[cfg(not(feature = "verbose-object-parsing-errors"))]
68-
mod tests {
69-
use super::*;
70-
71-
#[test]
72-
fn size_of_commit() {
73-
assert_eq!(
74-
std::mem::size_of::<Commit<'_>>(),
75-
216,
76-
"the size of an immutable commit shouldn't change unnoticed"
77-
);
78-
}
79-
}

git-object/tests/immutable/mod.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,3 @@ fn linus_signature(time: u32) -> git_actor::immutable::Signature<'static> {
4848
},
4949
}
5050
}
51-
52-
#[cfg(not(feature = "verbose-object-parsing-errors"))]
53-
mod object {
54-
use git_object::immutable::Object;
55-
56-
#[test]
57-
fn size_in_memory() {
58-
assert_eq!(
59-
std::mem::size_of::<Object>(),
60-
216,
61-
"Prevent unexpected growth of what should be lightweight objects"
62-
)
63-
}
64-
}

0 commit comments

Comments
 (0)