// deleteTasks removes all tasks func deleteTasks(rw http.ResponseWriter, req *http.Request, _ httprouter.Params) { task.DeleteAll() rw.WriteHeader(http.StatusNoContent) }
func TestDeleteAllTasks(t *testing.T) { task.DeleteAll() if len(testdb.Tsks) != 0 { t.Error("Tasks were not deleted") } }