From ef9e074006b389eaf98a7723223b83e9890f7d72 Mon Sep 17 00:00:00 2001 From: Patrick Peng Sun Date: Fri, 12 May 2017 00:42:12 +1000 Subject: [PATCH] split differnt type of material list --- material_test.go | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/material_test.go b/material_test.go index 41025aa..b6d4042 100644 --- a/material_test.go +++ b/material_test.go @@ -8,17 +8,32 @@ import ( 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 TestGetMaterialVoiceList(t *testing.T) { + SetupConfig() + l := getVoiceList() + log.Printf("voice is : %s", l) +} + +func TestGetMaterialVideoList(t *testing.T) { + SetupConfig() + l := getVideoList() + log.Printf("voice is : %s", l) } +func TestGetMaterialImageList(t *testing.T) { + SetupConfig() + l := getImageList() + log.Printf("voice is : %s", l) + +} func TestGetMaterialCount(t *testing.T) { SetupConfig() mc, err := getMaterialCount()