mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-28 15:10:32 +00:00
cmd/documentation: Add pagination support for contributors (#1885)
* cmd/documentation: Add pagination support for contributors * Drop break and return immediately * documentation: change defaultGithubAPIPerPageLimit to an integer and update usage in GetContributorList
This commit is contained in:
15
cmd/documentation/documentation_test.go
Normal file
15
cmd/documentation/documentation_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestGetContributorList(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
c, err := GetContributorList(t.Context(), DefaultRepo, true)
|
||||
require.NoError(t, err, "GetContributorList must not error")
|
||||
require.NotEmpty(t, c, "GetContributorList must not return empty list")
|
||||
}
|
||||
Reference in New Issue
Block a user