通道的增删接口实现,数据表和目录结构调整
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
package services
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_channelService_CreateChannel(t *testing.T) {
|
||||
// type args struct {
|
||||
// userID int32
|
||||
// region string
|
||||
// provider string
|
||||
// protocol Protocol
|
||||
// resourceId int
|
||||
// count int
|
||||
// }
|
||||
// tests := []struct {
|
||||
// name string
|
||||
// args args
|
||||
// want []*models.Channel
|
||||
// wantErr bool
|
||||
// }{
|
||||
// // TODO: Add test cases.
|
||||
// }
|
||||
// for _, tt := range tests {
|
||||
// t.Run(tt.name, func(t *testing.T) {
|
||||
// s := &channelService{}
|
||||
// got, err := s.CreateChannel(tt.args.userID, tt.args.region, tt.args.provider, tt.args.protocol, tt.args.resourceId, tt.args.count)
|
||||
// if (err != nil) != tt.wantErr {
|
||||
// t.Errorf("CreateChannel() error = %v, wantErr %v", err, tt.wantErr)
|
||||
// return
|
||||
// }
|
||||
// if !reflect.DeepEqual(got, tt.want) {
|
||||
// t.Errorf("CreateChannel() got = %v, want %v", got, tt.want)
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user