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 @@
11 mod ancestor {
22 use crate::hex_to_id;
33 use git_hash::ObjectId;
4− use git_odb::{linked, linked::Db, pack, Find};
4+ use git_odb::{linked::Db, pack, Find};
55 use git_traverse::commit;
66
7− fn db() -> Result<Db, Box<dyn std::error::Error>> {
8− let dir = git_testtools::scripted_fixture_repo_read_only("make_traversal_repo.sh")?;
9− let db = linked::Db::at(dir.join(".git").join("objects"))?;
7+ fn db() -> crate::Result<Db> {
8+ let dir = git_testtools::scripted_fixture_repo_read_only("make_traversal_repo_for_commits.sh")?;
9+ let db = Db::at(dir.join(".git").join("objects"))?;
1010 Ok(db)
1111 }
1212

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