mlbstats/api/test/api_homerun_derby_test.go

145 lines
3.6 KiB
Go

/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing HomerunDerbyAPIService
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
)
func Test_api_HomerunDerbyAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test HomerunDerbyAPIService HomeRunDerbyBracket", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var gamePk interface{}
httpRes, err := apiClient.HomerunDerbyAPI.HomeRunDerbyBracket(context.Background(), gamePk).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test HomerunDerbyAPIService HomeRunDerbyBracket1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var gamePk interface{}
httpRes, err := apiClient.HomerunDerbyAPI.HomeRunDerbyBracket1(context.Background(), gamePk).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test HomerunDerbyAPIService HomeRunDerbyBracket2", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var gamePk interface{}
httpRes, err := apiClient.HomerunDerbyAPI.HomeRunDerbyBracket2(context.Background(), gamePk).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test HomerunDerbyAPIService HomeRunDerbyBracket3", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var gamePk interface{}
httpRes, err := apiClient.HomerunDerbyAPI.HomeRunDerbyBracket3(context.Background(), gamePk).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test HomerunDerbyAPIService HomeRunDerbyMixedMode", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var gamePk interface{}
httpRes, err := apiClient.HomerunDerbyAPI.HomeRunDerbyMixedMode(context.Background(), gamePk).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test HomerunDerbyAPIService HomeRunDerbyMixedMode1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var gamePk interface{}
httpRes, err := apiClient.HomerunDerbyAPI.HomeRunDerbyMixedMode1(context.Background(), gamePk).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test HomerunDerbyAPIService HomeRunDerbyPool", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var gamePk interface{}
httpRes, err := apiClient.HomerunDerbyAPI.HomeRunDerbyPool(context.Background(), gamePk).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test HomerunDerbyAPIService HomeRunDerbyPool1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var gamePk interface{}
httpRes, err := apiClient.HomerunDerbyAPI.HomeRunDerbyPool1(context.Background(), gamePk).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
}