GetAllTaskCountInfo return all show count info
()
| 323 | |
| 324 | // GetAllTaskCountInfo return all show count info |
| 325 | func (service *TaskService) GetAllTaskCountInfo() []ShowCountInfo { |
| 326 | showInfos := []ShowCountInfo{} |
| 327 | for _, t := range service.GetAllTasks() { |
| 328 | showInfos = append(showInfos, ShowCountInfo{TaskID: t.TaskID(), Lable: "RUN", Count: t.CounterInfo().RunCounter.Count()}) |
| 329 | showInfos = append(showInfos, ShowCountInfo{TaskID: t.TaskID(), Lable: "ERROR", Count: t.CounterInfo().ErrorCounter.Count()}) |
| 330 | } |
| 331 | return showInfos |
| 332 | } |
| 333 | |
| 334 | // GetAllTasks get all tasks |
| 335 | func (service *TaskService) GetAllTasks() map[string]Task { |
no test coverage detected