Skip to content

Commit ddb47e6

Browse files
committed
test: add a failing test for pushing and hiding Commit objects
This is meant to work but has been broken.
1 parent c78ba61 commit ddb47e6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/walker_test.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,17 @@ def test_walk_count_with_block
167167

168168
assert_equal 1, amount
169169
end
170+
171+
def test_push_hide_commit
172+
@walker.push(@repo.lookup("9fd738e8f7967c078dceed8190330fc8648ee56a"))
173+
@walker.hide(@repo.lookup("5b5b025afb0b4c913b4c338a42934a3863bf3644"))
174+
175+
amount = @walker.count do |commit|
176+
commit.oid == "9fd738e8f7967c078dceed8190330fc8648ee56a"
177+
end
178+
179+
assert_equal 1, amount
180+
end
170181
end
171182

172183
# testrepo (the non-bare repo) is the one with non-linear history,

0 commit comments

Comments
 (0)