Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

39 lines
658B

  1. package main
  2. import (
  3. "fmt"
  4. "testing"
  5. "time"
  6. )
  7. var toUser = "oUN420bxqFqlx0ZQHciUOesZO3PE"
  8. func TestSendTxt(t *testing.T) {
  9. SetupConfig()
  10. msg := fmt.Sprintf("测试消息, %s ", time.Now().String())
  11. kfSendTxt(toUser, msg)
  12. }
  13. func TestSendPic(t *testing.T) {
  14. SetupConfig()
  15. kfSendPic(toUser, "media_for_test/200x200.png")
  16. }
  17. func TestSendVoice(t *testing.T) {
  18. SetupConfig()
  19. kfSendVoice(toUser, "media_for_test/example.amr")
  20. //kfSendVoiceByMediaID(toUser, "8Tc-pcFxEMtbO6T71AaL0A16taJUpwolXpB06mBBfaPZ68R3__1nN7HuZAUyW8xR")
  21. }
  22. func TestSendVideo(t *testing.T) {
  23. }
  24. func TestSendMusic(t *testing.T) {
  25. }
  26. func TestSendArticle(t *testing.T) {
  27. }