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/qywechat/qywechat_test.go

26 lines
385 B

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