|
- package main
-
- import (
- "fmt"
- "testing"
- "time"
- )
-
- var toUser = "oUN420bxqFqlx0ZQHciUOesZO3PE"
-
- func TestSendTxt(t *testing.T) {
- SetupConfig()
- msg := fmt.Sprintf("测试消息, %s ", time.Now().String())
- kfSendTxt(toUser, msg)
- }
-
- func TestSendPic(t *testing.T) {
- SetupConfig()
- kfSendPic(toUser, "media_for_test/200x200.png")
- }
-
- func TestSendVoice(t *testing.T) {
- SetupConfig()
- kfSendVoice(toUser, "media_for_test/example.amr")
- //kfSendVoiceByMediaID(toUser, "8Tc-pcFxEMtbO6T71AaL0A16taJUpwolXpB06mBBfaPZ68R3__1nN7HuZAUyW8xR")
- }
-
- func TestSendVideo(t *testing.T) {
-
- }
-
- func TestSendMusic(t *testing.T) {
-
- }
-
- func TestSendArticle(t *testing.T) {
-
- }
|