(actions []EngineAction)
| 395 | } |
| 396 | |
| 397 | func actionKindCounts(actions []EngineAction) planRuntimeSample { |
| 398 | out := planRuntimeSample{} |
| 399 | for _, action := range actions { |
| 400 | switch action.Kind() { |
| 401 | case ActionCreateChart: |
| 402 | out.actionCreateChart++ |
| 403 | case ActionCreateDimension: |
| 404 | out.actionCreateDimension++ |
| 405 | case ActionUpdateChart: |
| 406 | out.actionUpdateChart++ |
| 407 | case ActionRemoveDimension: |
| 408 | out.actionRemoveDimension++ |
| 409 | case ActionRemoveChart: |
| 410 | out.actionRemoveChart++ |
| 411 | } |
| 412 | } |
| 413 | return out |
| 414 | } |
no test coverage detected
searching dependent graphs…