Skip to content

Commit

Permalink
with manager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Sep 11, 2024
1 parent 56a5c95 commit 91be003
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion pkg/graveler/ref/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ func TestManager_LogGraph(t *testing.T) {
/*
---1----2----4----7
\ \
3----5----6----8---
3----5----6----8
*/
"full_graph": {
start: "c8",
Expand All @@ -830,6 +830,11 @@ func TestManager_LogGraph(t *testing.T) {
firstParent: true,
expected: []string{"c8", "c6", "c5", "c3", "c1"},
},
"full_graph_no_merges": {
start: "c8",
noMerges: true,
expected: []string{"c6", "c5", "c3", "c1"},
},
"with_seek": {
start: "c8",
seek: "c4",
Expand All @@ -841,6 +846,18 @@ func TestManager_LogGraph(t *testing.T) {
firstParent: true,
expected: []string{"c5", "c3", "c1"},
},
"with_seek_no_merges": {
start: "c8",
seek: "c5",
noMerges: true,
expected: []string{"c5", "c3", "c1"},
},
"with_seek_no_merges2": {
start: "c8",
seek: "c4",
noMerges: true,
expected: nil,
},
"start_from": {
start: "c7",
expected: []string{"c7", "c4", "c2", "c1"},
Expand Down

0 comments on commit 91be003

Please sign in to comment.