package main import ( "log" "testing" ) func TestGetMaterialList(t *testing.T) { SetupConfig() l := getNewList() log.Printf("news is : %s", l) l = getVoiceList() log.Printf("voice is : %s", l) l = getVideoList() log.Printf("video is : %s", l) l = getImageList() log.Printf("Image is : %s", l) } func TestGetMaterialCount(t *testing.T) { SetupConfig() mc, err := getMaterialCount() if err != nil { log.Fatal(err) } log.Printf("Voice: %d", mc.VoiceCount) log.Printf("Video: %d", mc.VideoCount) log.Printf("Image: %d", mc.ImageCount) log.Printf("News : %d", mc.NewsCount) }