211 lines
3.1 KiB
Go
211 lines
3.1 KiB
Go
package service
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"testing"
|
|
)
|
|
|
|
func TestAddShelf(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) {
|
|
AddShelf(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestArtShowDone(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) {
|
|
ArtShowDone(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestAwsStorage(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) {
|
|
AwsStorage(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestDelShelf(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) {
|
|
DelShelf(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestExportByShowId(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) {
|
|
ExportByShowId(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestIndexCount(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) {
|
|
IndexCount(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestShelfAddArtwork(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) {
|
|
ShelfAddArtwork(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestShelfDetail(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) {
|
|
ShelfDetail(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestShelfDragArtwork(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) {
|
|
ShelfDragArtwork(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestShelfList(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) {
|
|
ShelfList(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestSimpleArtworkList(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) {
|
|
SimpleArtworkList(tt.args.c)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestUpdateAwShelf(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) {
|
|
UpdateAwShelf(tt.args.c)
|
|
})
|
|
}
|
|
}
|