go fmt
This commit is contained in:
parent
5bfec4d5d9
commit
003f7b1309
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// AnalyticsAPIService AnalyticsAPI service
|
||||
type AnalyticsAPIService service
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// AttendanceAPIService AttendanceAPI service
|
||||
type AttendanceAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// AwardsAPIService AwardsAPI service
|
||||
type AwardsAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// BatTrackingAPIService BatTrackingAPI service
|
||||
type BatTrackingAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// BiomechanicsAPIService BiomechanicsAPI service
|
||||
type BiomechanicsAPIService service
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// BroadcastAPIService BroadcastAPI service
|
||||
type BroadcastAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// ConferenceAPIService ConferenceAPI service
|
||||
type ConferenceAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// DivisionAPIService DivisionAPI service
|
||||
type DivisionAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// DraftAPIService DraftAPI service
|
||||
type DraftAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// GameAPIService GameAPI service
|
||||
type GameAPIService service
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// GamePaceAPIService GamePaceAPI service
|
||||
type GamePaceAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// HighLowAPIService HighLowAPI service
|
||||
type HighLowAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// HomerunDerbyAPIService HomerunDerbyAPI service
|
||||
type HomerunDerbyAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// JobAPIService JobAPI service
|
||||
type JobAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// LeagueAPIService LeagueAPI service
|
||||
type LeagueAPIService service
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// MilestonesAPIService MilestonesAPI service
|
||||
type MilestonesAPIService service
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// MiscAPIService MiscAPI service
|
||||
type MiscAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// PersonAPIService PersonAPI service
|
||||
type PersonAPIService service
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// PredictionsAPIService PredictionsAPI service
|
||||
type PredictionsAPIService service
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// ReviewsAPIService ReviewsAPI service
|
||||
type ReviewsAPIService service
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// ScheduleAPIService ScheduleAPI service
|
||||
type ScheduleAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// SeasonAPIService SeasonAPI service
|
||||
type SeasonAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// SkeletalAPIService SkeletalAPI service
|
||||
type SkeletalAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// SportsAPIService SportsAPI service
|
||||
type SportsAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// StandingsAPIService StandingsAPI service
|
||||
type StandingsAPIService service
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// StatsAPIService StatsAPI service
|
||||
type StatsAPIService service
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// StreaksAPIService StreaksAPI service
|
||||
type StreaksAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// TeamsAPIService TeamsAPI service
|
||||
type TeamsAPIService service
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// TransactionsAPIService TransactionsAPI service
|
||||
type TransactionsAPIService service
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// UniformsAPIService UniformsAPI service
|
||||
type UniformsAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// VenuesAPIService VenuesAPI service
|
||||
type VenuesAPIService service
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
|
||||
// WeatherAPIService WeatherAPI service
|
||||
type WeatherAPIService service
|
||||
|
||||
|
|
|
@ -31,14 +31,13 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
)
|
||||
|
||||
var (
|
||||
JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
|
||||
XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
|
||||
queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
|
||||
queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" )
|
||||
queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]")
|
||||
)
|
||||
|
||||
// APIClient manages communication with the Stats API Documentation API v2.0.0
|
||||
|
@ -218,7 +217,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func parameterValueToString( obj interface{}, key string ) string {
|
||||
func parameterValueToString(obj interface{}, key string) string {
|
||||
if reflect.TypeOf(obj).Kind() != reflect.Ptr {
|
||||
if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok {
|
||||
return fmt.Sprintf("%v", actualObj.GetActualInstanceValue())
|
||||
|
@ -226,11 +225,11 @@ func parameterValueToString( obj interface{}, key string ) string {
|
|||
|
||||
return fmt.Sprintf("%v", obj)
|
||||
}
|
||||
var param,ok = obj.(MappedNullable)
|
||||
var param, ok = obj.(MappedNullable)
|
||||
if !ok {
|
||||
return ""
|
||||
}
|
||||
dataMap,err := param.ToMap()
|
||||
dataMap, err := param.ToMap()
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
|
@ -250,8 +249,8 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
|
|||
value = "invalid"
|
||||
|
||||
case reflect.Struct:
|
||||
if t,ok := obj.(MappedNullable); ok {
|
||||
dataMap,err := t.ToMap()
|
||||
if t, ok := obj.(MappedNullable); ok {
|
||||
dataMap, err := t.ToMap()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
@ -269,7 +268,7 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
|
|||
return
|
||||
}
|
||||
var lenIndValue = indValue.Len()
|
||||
for i:=0;i<lenIndValue;i++ {
|
||||
for i := 0; i < lenIndValue; i++ {
|
||||
var arrayValue = indValue.Index(i)
|
||||
var keyPrefixForCollectionType = keyPrefix
|
||||
if style == "deepObject" {
|
||||
|
@ -286,7 +285,7 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
|
|||
}
|
||||
iter := indValue.MapRange()
|
||||
for iter.Next() {
|
||||
k,v := iter.Key(), iter.Value()
|
||||
k, v := iter.Key(), iter.Value()
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType)
|
||||
}
|
||||
return
|
||||
|
@ -317,7 +316,7 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
|
|||
switch valuesMap := headerOrQueryParams.(type) {
|
||||
case url.Values:
|
||||
if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
|
||||
valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix) + "," + value)
|
||||
valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value)
|
||||
} else {
|
||||
valuesMap.Add(keyPrefix, value)
|
||||
}
|
||||
|
|
|
@ -94,8 +94,7 @@ func NewConfiguration() *Configuration {
|
|||
Description: "No description provided",
|
||||
},
|
||||
},
|
||||
OperationServers: map[string]ServerConfigurations{
|
||||
},
|
||||
OperationServers: map[string]ServerConfigurations{},
|
||||
}
|
||||
return cfg
|
||||
}
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing AnalyticsAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_AnalyticsAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing AttendanceAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_AttendanceAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing AwardsAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_AwardsAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing BatTrackingAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_BatTrackingAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing BiomechanicsAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_BiomechanicsAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing BroadcastAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_BroadcastAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing ConferenceAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_ConferenceAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing DivisionAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_DivisionAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing DraftAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_DraftAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing GamePaceAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_GamePaceAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing GameAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_GameAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing HighLowAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_HighLowAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing HomerunDerbyAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_HomerunDerbyAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing JobAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_JobAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing LeagueAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_LeagueAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing MilestonesAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_MilestonesAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing MiscAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_MiscAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing PersonAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_PersonAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing PredictionsAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_PredictionsAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing ReviewsAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_ReviewsAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing ScheduleAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_ScheduleAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing SeasonAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_SeasonAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing SkeletalAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_SkeletalAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing SportsAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_SportsAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing StandingsAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_StandingsAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing StatsAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_StatsAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing StreaksAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_StreaksAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing TeamsAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_TeamsAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing TransactionsAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_TransactionsAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing UniformsAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_UniformsAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing VenuesAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_VenuesAPIService(t *testing.T) {
|
||||
|
|
|
@ -10,11 +10,11 @@ Testing WeatherAPIService
|
|||
package api
|
||||
|
||||
import (
|
||||
openapiclient "//"
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "//"
|
||||
)
|
||||
|
||||
func Test_api_WeatherAPIService(t *testing.T) {
|
||||
|
|
|
@ -35,8 +35,7 @@ var statsAPIConfiguration = &api.Configuration{
|
|||
Description: "No description provided",
|
||||
},
|
||||
},
|
||||
OperationServers: map[string]api.ServerConfigurations{
|
||||
},
|
||||
OperationServers: map[string]api.ServerConfigurations{},
|
||||
}
|
||||
|
||||
var statsAPIClient = api.NewAPIClient(statsAPIConfiguration)
|
||||
|
|
Loading…
Reference in New Issue