You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/service/qywechat/qywechat_test.go

26 lines
391 B

3 years ago
package qywechat
import (
3 years ago
"fmt"
3 years ago
"gitee.com/dtapps/go-library/service/qywechat/message"
3 years ago
"testing"
)
func TestName(t *testing.T) {
3 years ago
bot := QyBot{
3 years ago
Key: "",
}
3 years ago
msg := message.Message{
MsgType: message.TextStr,
Text: message.Text_{
3 years ago
Content: "测试",
3 years ago
},
}
3 years ago
send, err := bot.Send(msg)
3 years ago
fmt.Printf("send%v\n", send)
3 years ago
if err != nil {
3 years ago
t.Errorf("err%v\n", err)
3 years ago
return
}
}