Skip to content

Commit

Permalink
[Test] cover mode by tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JanGalek committed Dec 17, 2024
1 parent 31c0ed4 commit a3abe94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/paginator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ func TestPaginator_IsLast(t *testing.T) {
assert.False(t, p.IsLast())
}

func TestPaginator_IsLast_WhenItemCountIsNil(t *testing.T) {
p := paginator.NewPaginator()

isLast := p.IsLast()

assert.False(t, isLast, "Expected IsLast() to return false when itemCount is nil")
}

func TestPaginator_GetOffset(t *testing.T) {
p := paginator.NewPaginator()

Expand Down

0 comments on commit a3abe94

Please sign in to comment.