(res *team.MembersAddLaunch)
| 284 | } |
| 285 | |
| 286 | func teamMemberAddStatus(res *team.MembersAddLaunch) string { |
| 287 | if res == nil { |
| 288 | return teamJSONStatusCompleted |
| 289 | } |
| 290 | if res.Tag != "complete" { |
| 291 | return teamJSONStatusStarted |
| 292 | } |
| 293 | for _, item := range res.Complete { |
| 294 | if item != nil && item.Tag != "success" { |
| 295 | return teamJSONStatusCompleted |
| 296 | } |
| 297 | } |
| 298 | return teamJSONStatusAdded |
| 299 | } |
| 300 | |
| 301 | func teamMemberRemoveStatus(res *async.LaunchEmptyResult) string { |
| 302 | if res == nil { |
no outgoing calls
no test coverage detected