114 lines
2.5 KiB
Go
114 lines
2.5 KiB
Go
|
/*
|
||
|
Stats API Documentation
|
||
|
|
||
|
Testing StatsAPIService
|
||
|
|
||
|
*/
|
||
|
|
||
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||
|
|
||
|
package api
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
"github.com/stretchr/testify/require"
|
||
|
"testing"
|
||
|
openapiclient "//"
|
||
|
)
|
||
|
|
||
|
func Test_api_StatsAPIService(t *testing.T) {
|
||
|
|
||
|
configuration := openapiclient.NewConfiguration()
|
||
|
apiClient := openapiclient.NewAPIClient(configuration)
|
||
|
|
||
|
t.Run("Test StatsAPIService BeastStats", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
httpRes, err := apiClient.StatsAPI.BeastStats(context.Background()).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test StatsAPIService GetOutsAboveAverage", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
httpRes, err := apiClient.StatsAPI.GetOutsAboveAverage(context.Background()).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test StatsAPIService GetSprayChart", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
httpRes, err := apiClient.StatsAPI.GetSprayChart(context.Background()).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test StatsAPIService GetStolenBaseProbability", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
httpRes, err := apiClient.StatsAPI.GetStolenBaseProbability(context.Background()).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test StatsAPIService GroupedStats", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
httpRes, err := apiClient.StatsAPI.GroupedStats(context.Background()).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test StatsAPIService Leaders2", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
httpRes, err := apiClient.StatsAPI.Leaders2(context.Background()).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test StatsAPIService MetricStats", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
httpRes, err := apiClient.StatsAPI.MetricStats(context.Background()).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test StatsAPIService Stats2", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
httpRes, err := apiClient.StatsAPI.Stats2(context.Background()).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
}
|