38 lines
920 B
Go
38 lines
920 B
Go
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)
|
|
// }
|
|
// })
|
|
// }
|
|
}
|