(allowedOperationsBits: DROP_OPERATION)
| 487 | } |
| 488 | |
| 489 | function allowedOperationsToArray(allowedOperationsBits: DROP_OPERATION) { |
| 490 | let allowedOperations: Array<DropOperation> = []; |
| 491 | if (allowedOperationsBits & DROP_OPERATION.move) { |
| 492 | allowedOperations.push('move'); |
| 493 | } |
| 494 | |
| 495 | if (allowedOperationsBits & DROP_OPERATION.copy) { |
| 496 | allowedOperations.push('copy'); |
| 497 | } |
| 498 | |
| 499 | if (allowedOperationsBits & DROP_OPERATION.link) { |
| 500 | allowedOperations.push('link'); |
| 501 | } |
| 502 | |
| 503 | return allowedOperations; |
| 504 | } |
| 505 | |
| 506 | function getDropOperation(allowedOperations: DROP_OPERATION, operation: DropOperation) { |
| 507 | let op = DROP_OPERATION[operation]; |
no test coverage detected