更新文档内容
This commit is contained in:
@@ -1,32 +1,43 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing SearchApiService
|
||||
Testing SearchAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_SearchApiService(t *testing.T) {
|
||||
func Test_answer_sdk_SearchAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test SearchApiService AnswerApiV1SearchGet", func(t *testing.T) {
|
||||
t.Run("Test SearchAPIService AnswerApiV1SearchDescGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SearchApi.AnswerApiV1SearchGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.SearchAPI.AnswerApiV1SearchDescGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SearchAPIService AnswerApiV1SearchGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SearchAPI.AnswerApiV1SearchGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
Reference in New Issue
Block a user