client/client_test.go
Function TestClients
has 69 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestClients(t *testing.T) {
testRoot := testhelper.PrepareTestRootDir(t)
testCases := []struct {
desc string
Function buildRequests
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func buildRequests(t *testing.T, relativeURLRoot string) []testserver.TestRequestHandler {
requests := []testserver.TestRequestHandler{
{
Path: "/api/v4/internal/hello",
Handler: func(w http.ResponseWriter, r *http.Request) {