mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 15:09:51 +00:00
* cmd/documentation: Add pagination support for contributors * Drop break and return immediately * documentation: change defaultGithubAPIPerPageLimit to an integer and update usage in GetContributorList
16 lines
335 B
Go
16 lines
335 B
Go
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")
|
|
}
|