Skip to content

Commit f9ed10f

Browse files
committed
Add Fixture::for_worktree_path
1 parent 68a6f3f commit f9ed10f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gix-blame/tests/blame.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ struct Fixture {
116116

117117
impl Fixture {
118118
fn new() -> gix_testtools::Result<Fixture> {
119-
let worktree_path = fixture_path();
119+
Self::for_worktree_path(fixture_path())
120+
}
121+
122+
fn for_worktree_path(worktree_path: PathBuf) -> gix_testtools::Result<Fixture> {
120123
use gix_ref::store::WriteReflog;
121124

122125
let store = gix_ref::file::Store::at(

0 commit comments

Comments
 (0)