Skip to content

Commit 5ccdcac

Browse files
author
kuba--
committed
Add more iterator tests for other tables
Signed-off-by: kuba-- <[email protected]>
1 parent 145a26a commit 5ccdcac

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

commits_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,3 +304,8 @@ func TestCommitsIndexIterClosed(t *testing.T) {
304304
func TestCommitsIterClosed(t *testing.T) {
305305
testTableIterClosed(t, new(commitsTable))
306306
}
307+
308+
func TestCommitsIterators(t *testing.T) {
309+
// columns names just for debugging
310+
testTableIterators(t, new(commitsTable), []string{"commit_hash", "commit_author_email"})
311+
}

references_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,8 @@ func TestReferencesIndexIterClosed(t *testing.T) {
140140
func TestReferencesIterClosed(t *testing.T) {
141141
testTableIterClosed(t, new(referencesTable))
142142
}
143+
144+
func TestReferencesIterators(t *testing.T) {
145+
// columns names just for debugging
146+
testTableIterators(t, new(referencesTable), []string{"ref_name", "commit_hash"})
147+
}

0 commit comments

Comments
 (0)