(device: DeviceInfo, selector: DeviceSelector)
| 304 | } |
| 305 | |
| 306 | function matchesExplicitDeviceSelector(device: DeviceInfo, selector: DeviceSelector): boolean { |
| 307 | if (selector.udid && !(device.id === selector.udid && isApplePlatform(device.platform))) { |
| 308 | return false; |
| 309 | } |
| 310 | if (selector.serial && !(device.id === selector.serial && device.platform === 'android')) { |
| 311 | return false; |
| 312 | } |
| 313 | if ( |
| 314 | selector.deviceName && |
| 315 | normalizeDeviceName(device.name) !== normalizeDeviceName(selector.deviceName) |
| 316 | ) { |
| 317 | return false; |
| 318 | } |
| 319 | return true; |
| 320 | } |
| 321 | |
| 322 | function throwNoDevicesFound(selector: DeviceSelector, context: DeviceSelectionContext): never { |
| 323 | const simulatorSetPath = context.simulatorSetPath; |
no test coverage detected
searching dependent graphs…