MCPcopy Create free account
hub / github.com/chrisdickinson/git-rs / commit_read_works

Function commit_read_works

src/objects/commit.rs:151–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149mod tests {
150 #[test]
151 fn commit_read_works() {
152 let bytes = include_bytes!("../../fixtures/commit");
153 let commit = super::Commit::load(&mut bytes.as_ref()).expect("oh no");
154 let message = std::str::from_utf8(&commit.message).expect("not utf8");
155 assert_eq!(message, "initial commit\n\n");
156 }
157}

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected