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.

33 line
612B

  1. package main
  2. import (
  3. "log"
  4. "testing"
  5. )
  6. func TestGetMaterialList(t *testing.T) {
  7. SetupConfig()
  8. l := getNewList()
  9. log.Printf("file is : %s", l)
  10. // l = getVoiceList()
  11. // log.Printf("file is : %s", l)
  12. // l = getVideoList()
  13. // log.Printf("file is : %s", l)
  14. // l = getImageList()
  15. // log.Printf("file is : %s", l)
  16. }
  17. func TestGetMaterialCount(t *testing.T) {
  18. SetupConfig()
  19. mc, err := getMaterialCount()
  20. if err != nil {
  21. log.Fatal(err)
  22. }
  23. log.Printf("Voice: %d", mc.VoiceCount)
  24. log.Printf("Video: %d", mc.VideoCount)
  25. log.Printf("Image: %d", mc.ImageCount)
  26. log.Printf("News : %d", mc.NewsCount)
  27. }