Sebastian Thielrefactor; better tests12d14bf6 years agoHistory
13 lines · 363 B · Rust
RawDownload
use crate::loose::db::{locate_oid, object_ids};use git_object::HashKind;use git_odb::Write; #[test]fn write() -> Result<(), Box<dyn std::error::Error>> {    for oid in object_ids() {        let mut obj = locate_oid(oid);        let actual = git_odb::sink().write(&obj.decode()?.into(), HashKind::Sha1)?;        assert_eq!(actual, oid);    }    Ok(())}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t