Showing the changes to git-object/src/immutable/commit (1 of 2 files). Show all
Unified · Split
| @@ -62,18 +62,3 @@ impl<'a> Commit<'a> { · 61 unmodified lines | ||
| 62 | 62 | crate::commit::ExtraHeaders::new(self.extra_headers.iter().map(|(k, v)| (*k, v.as_ref()))) |
| 63 | 63 | } |
| 64 | 64 | } |
| 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 | −} | |