Esempio n. 1
0
func getReport() {
	var reportClient = report.NewWithBaseURI(utils.GetBaseURI())
	res, err := reportClient.GetReport()
	if err != nil {
		fmt.Println("Error:", err)
	}
	printReport(res.Value, "")
}
Esempio n. 2
0
func getReport() {
	var reportClient = report.NewWithBaseURI(utils.GetBaseURI())
	res, err := reportClient.GetReport()
	if err != nil {
		fmt.Println("Error:", err)
	}

	count := 0
	for key, val := range *res.Value {
		if *val <= 0 {
			fmt.Println(key, *val)
			count++
		}
	}
	total := len(*res.Value)
	fmt.Printf("\nReport:	Passed(%v)  Failed(%v)\n", total-count, count)
	fmt.Println("Go Done.......\n")
}