219 lines
3.5 KiB
Go
219 lines
3.5 KiB
Go
package service
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func TestAllotArtwork(t *testing.T) {
|
|
type args struct {
|
|
c *gin.Context
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
AllotArtwork(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestDownloadArtwork(t *testing.T) {
|
|
type args struct {
|
|
c *gin.Context
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
DownloadArtwork(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestDownloadHash(t *testing.T) {
|
|
type args struct {
|
|
c *gin.Context
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
DownloadHash(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestEditAwStatus(t *testing.T) {
|
|
type args struct {
|
|
c *gin.Context
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
EditAwStatus(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestExportArtwork(t *testing.T) {
|
|
type args struct {
|
|
c *gin.Context
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
ExportArtwork(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestExportArtworkField(t *testing.T) {
|
|
type args struct {
|
|
c *gin.Context
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
ExportArtworkField(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestGetTagIdList(t *testing.T) {
|
|
tests := []struct {
|
|
name string
|
|
wantInfo map[int32]string
|
|
wantErr bool
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
gotInfo, err := GetTagIdList()
|
|
if (err != nil) != tt.wantErr {
|
|
t.Errorf("GetTagIdList() error = %v, wantErr %v", err, tt.wantErr)
|
|
return
|
|
}
|
|
if !reflect.DeepEqual(gotInfo, tt.wantInfo) {
|
|
t.Errorf("GetTagIdList() gotInfo = %v, want %v", gotInfo, tt.wantInfo)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestMyAwList(t *testing.T) {
|
|
type args struct {
|
|
c *gin.Context
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
MyAwList(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestShelfNoList(t *testing.T) {
|
|
type args struct {
|
|
c *gin.Context
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
ShelfNoList(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestSubmitTask(t *testing.T) {
|
|
type args struct {
|
|
c *gin.Context
|
|
status int32
|
|
ids []int32
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
SubmitTask(tt.args.c, tt.args.status, tt.args.ids)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestUpdateCopyright(t *testing.T) {
|
|
type args struct {
|
|
c *gin.Context
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
UpdateCopyright(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestUpdateCopyrightInfo(t *testing.T) {
|
|
type args struct {
|
|
c *gin.Context
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
UpdateCopyrightInfo(tt.args.c)
|
|
})
|
|
}
|
|
}
|