Skip to content

Commit

Permalink
Add more iterator tests for other tables
Browse files Browse the repository at this point in the history
Signed-off-by: kuba-- <[email protected]>
  • Loading branch information
kuba-- committed Apr 10, 2019
1 parent 145a26a commit 5ccdcac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions commits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,8 @@ func TestCommitsIndexIterClosed(t *testing.T) {
func TestCommitsIterClosed(t *testing.T) {
testTableIterClosed(t, new(commitsTable))
}

func TestCommitsIterators(t *testing.T) {
// columns names just for debugging
testTableIterators(t, new(commitsTable), []string{"commit_hash", "commit_author_email"})
}
5 changes: 5 additions & 0 deletions references_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,8 @@ func TestReferencesIndexIterClosed(t *testing.T) {
func TestReferencesIterClosed(t *testing.T) {
testTableIterClosed(t, new(referencesTable))
}

func TestReferencesIterators(t *testing.T) {
// columns names just for debugging
testTableIterators(t, new(referencesTable), []string{"ref_name", "commit_hash"})
}

0 comments on commit 5ccdcac

Please sign in to comment.