first version

This commit is contained in:
2023-08-18 10:03:31 +08:00
commit c3f06b456f
410 changed files with 94634 additions and 0 deletions

121
test/api_comment_test.go Normal file
View File

@@ -0,0 +1,121 @@
/*
answer
Testing CommentApiService
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
package openapi
import (
"context"
openapiclient "git.ncc.cx/package/openapi-go-answer"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
)
func Test_openapi_CommentApiService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test CommentApiService AnswerApiV1ActivityTimelineDetailGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1ActivityTimelineDetailGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test CommentApiService AnswerApiV1ActivityTimelineGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1ActivityTimelineGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test CommentApiService AnswerApiV1CommentDelete", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentDelete(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test CommentApiService AnswerApiV1CommentGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test CommentApiService AnswerApiV1CommentPageGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentPageGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test CommentApiService AnswerApiV1CommentPost", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentPost(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test CommentApiService AnswerApiV1CommentPut", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentPut(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test CommentApiService AnswerApiV1PersonalCommentPageGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.CommentApi.AnswerApiV1PersonalCommentPageGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
}