(opts *shared.ViewOptions, workerPool workerpools.IWorkerPool)
| 177 | } |
| 178 | |
| 179 | func getWorkers(opts *shared.ViewOptions, workerPool workerpools.IWorkerPool) ([]*machines.Worker, error) { |
| 180 | if workerPool.GetWorkerPoolType() == workerpools.WorkerPoolTypeStatic { |
| 181 | return opts.Client.WorkerPools.GetWorkers(workerPool) |
| 182 | } |
| 183 | // Dynamic worker pools don't have static workers |
| 184 | return []*machines.Worker{}, nil |
| 185 | } |
| 186 | |
| 187 | func calculateWorkerStats(workers []*machines.Worker) WorkerStats { |
| 188 | stats := WorkerStats{} |
no outgoing calls
no test coverage detected