History

[traverse-tree] one test to pin implementation down a little

Sebastian Thiel committed 5 years ago

Commit f0aeee11 parent c7633f27 files · +235 −15Browse files

Showing the changes to git-traverse/tests/commit (1 of 7 files). Show all

Unified · Split

git-traverse/tests/commit/mod.rs+4−4
@@ -1,12 +1,12 @@
1mod ancestor {1mod ancestor {
2 use crate::hex_to_id;2 use crate::hex_to_id;
3 use git_hash::ObjectId;3 use git_hash::ObjectId;
4 use git_odb::{linked, linked::Db, pack, Find};4 use git_odb::{linked::Db, pack, Find};
5 use git_traverse::commit;5 use git_traverse::commit;
6 6
7 fn db() -> Result<Db, Box<dyn std::error::Error>> {7 fn db() -> crate::Result<Db> {
8 let dir = git_testtools::scripted_fixture_repo_read_only("make_traversal_repo.sh")?;8 let dir = git_testtools::scripted_fixture_repo_read_only("make_traversal_repo_for_commits.sh")?;
9 let db = linked::Db::at(dir.join(".git").join("objects"))?;9 let db = Db::at(dir.join(".git").join("objects"))?;
10 Ok(db)10 Ok(db)
11 }11 }
12 12

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