Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def testProtocols(self):
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMask, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggedImageLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingSequenceNumber, objc._C_NSInteger)
self.assertArgHasType(TestNSDraggingHelper.slideDraggedImageTo_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingEntered_, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingUpdated_, objc._C_NSUInteger)
self.assertResultIsBOOL(TestNSDraggingHelper.prepareForDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.performDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.wantsPeriodicDraggingUpdates)
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, objc._C_NSUInteger)
self.assertArgIsBOOL(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, 0)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_beganAt_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 2, objc._C_NSUInteger)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_movedTo_, 1, NSPoint.__typestr__)
self.assertResultIsBOOL(TestNSDraggingHelper.ignoreModifierKeysWhileDragging)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 1, NSPoint.__typestr__)
self.assertArgIsBOOL(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 2)
self.assertResultHasType(TestNSDraggingHelper.draggingSequenceNumber, objc._C_NSInteger)
self.assertArgHasType(TestNSDraggingHelper.slideDraggedImageTo_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingEntered_, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingUpdated_, objc._C_NSUInteger)
self.assertResultIsBOOL(TestNSDraggingHelper.prepareForDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.performDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.wantsPeriodicDraggingUpdates)
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, objc._C_NSUInteger)
self.assertArgIsBOOL(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, 0)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_beganAt_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 2, objc._C_NSUInteger)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_movedTo_, 1, NSPoint.__typestr__)
self.assertResultIsBOOL(TestNSDraggingHelper.ignoreModifierKeysWhileDragging)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 1, NSPoint.__typestr__)
self.assertArgIsBOOL(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 2)
self.assertResultHasType(TestNSDraggingHelper.draggedImageLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingSequenceNumber, objc._C_NSInteger)
self.assertArgHasType(TestNSDraggingHelper.slideDraggedImageTo_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingEntered_, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingUpdated_, objc._C_NSUInteger)
self.assertResultIsBOOL(TestNSDraggingHelper.prepareForDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.performDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.wantsPeriodicDraggingUpdates)
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, objc._C_NSUInteger)
self.assertArgIsBOOL(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, 0)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_beganAt_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 2, objc._C_NSUInteger)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_movedTo_, 1, NSPoint.__typestr__)
self.assertResultIsBOOL(TestNSDraggingHelper.ignoreModifierKeysWhileDragging)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 1, NSPoint.__typestr__)
self.assertArgIsBOOL(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 2)
def testProtocols(self):
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMask, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggedImageLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingSequenceNumber, objc._C_NSInteger)
self.assertArgHasType(TestNSDraggingHelper.slideDraggedImageTo_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingEntered_, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingUpdated_, objc._C_NSUInteger)
self.assertResultIsBOOL(TestNSDraggingHelper.prepareForDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.performDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.wantsPeriodicDraggingUpdates)
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, objc._C_NSUInteger)
self.assertArgIsBOOL(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, 0)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_beganAt_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 2, objc._C_NSUInteger)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_movedTo_, 1, NSPoint.__typestr__)
self.assertResultIsBOOL(TestNSDraggingHelper.ignoreModifierKeysWhileDragging)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 1, NSPoint.__typestr__)
self.assertArgIsBOOL(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 2)
self.assertArgHasType(TestNSDraggingHelper.slideDraggedImageTo_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingEntered_, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingUpdated_, objc._C_NSUInteger)
self.assertResultIsBOOL(TestNSDraggingHelper.prepareForDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.performDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.wantsPeriodicDraggingUpdates)
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, objc._C_NSUInteger)
self.assertArgIsBOOL(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, 0)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_beganAt_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 2, objc._C_NSUInteger)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_movedTo_, 1, NSPoint.__typestr__)
self.assertResultIsBOOL(TestNSDraggingHelper.ignoreModifierKeysWhileDragging)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 1, NSPoint.__typestr__)
self.assertArgIsBOOL(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 2)
def testProtocols(self):
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMask, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggedImageLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingSequenceNumber, objc._C_NSInteger)
self.assertArgHasType(TestNSDraggingHelper.slideDraggedImageTo_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingEntered_, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingUpdated_, objc._C_NSUInteger)
self.assertResultIsBOOL(TestNSDraggingHelper.prepareForDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.performDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.wantsPeriodicDraggingUpdates)
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, objc._C_NSUInteger)
self.assertArgIsBOOL(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, 0)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_beganAt_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 2, objc._C_NSUInteger)
def testProtocols(self):
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMask, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggedImageLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingSequenceNumber, objc._C_NSInteger)
self.assertArgHasType(TestNSDraggingHelper.slideDraggedImageTo_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingEntered_, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingUpdated_, objc._C_NSUInteger)
self.assertResultIsBOOL(TestNSDraggingHelper.prepareForDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.performDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.wantsPeriodicDraggingUpdates)
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, objc._C_NSUInteger)
self.assertArgIsBOOL(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, 0)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_beganAt_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 2, objc._C_NSUInteger)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_movedTo_, 1, NSPoint.__typestr__)
def testProtocols(self):
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMask, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggedImageLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingSequenceNumber, objc._C_NSInteger)
self.assertArgHasType(TestNSDraggingHelper.slideDraggedImageTo_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingEntered_, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingUpdated_, objc._C_NSUInteger)
self.assertResultIsBOOL(TestNSDraggingHelper.prepareForDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.performDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.wantsPeriodicDraggingUpdates)
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, objc._C_NSUInteger)
self.assertArgIsBOOL(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, 0)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_beganAt_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 2, objc._C_NSUInteger)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_movedTo_, 1, NSPoint.__typestr__)
self.assertResultIsBOOL(TestNSDraggingHelper.ignoreModifierKeysWhileDragging)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 1, NSPoint.__typestr__)
self.assertArgIsBOOL(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 2)
def testProtocols(self):
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMask, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggedImageLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingSequenceNumber, objc._C_NSInteger)
self.assertArgHasType(TestNSDraggingHelper.slideDraggedImageTo_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingEntered_, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingUpdated_, objc._C_NSUInteger)
self.assertResultIsBOOL(TestNSDraggingHelper.prepareForDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.performDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.wantsPeriodicDraggingUpdates)
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, objc._C_NSUInteger)
self.assertArgIsBOOL(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, 0)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_beganAt_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 2, objc._C_NSUInteger)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_movedTo_, 1, NSPoint.__typestr__)
self.assertResultIsBOOL(TestNSDraggingHelper.ignoreModifierKeysWhileDragging)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 1, NSPoint.__typestr__)
self.assertArgIsBOOL(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 2)
def testProtocols(self):
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMask, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggedImageLocation, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingSequenceNumber, objc._C_NSInteger)
self.assertArgHasType(TestNSDraggingHelper.slideDraggedImageTo_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSDraggingHelper.draggingEntered_, objc._C_NSUInteger)
self.assertResultHasType(TestNSDraggingHelper.draggingUpdated_, objc._C_NSUInteger)
self.assertResultIsBOOL(TestNSDraggingHelper.prepareForDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.performDragOperation_)
self.assertResultIsBOOL(TestNSDraggingHelper.wantsPeriodicDraggingUpdates)
self.assertResultHasType(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, objc._C_NSUInteger)
self.assertArgIsBOOL(TestNSDraggingHelper.draggingSourceOperationMaskForLocal_, 0)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_beganAt_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 1, NSPoint.__typestr__)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_operation_, 2, objc._C_NSUInteger)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_movedTo_, 1, NSPoint.__typestr__)
self.assertResultIsBOOL(TestNSDraggingHelper.ignoreModifierKeysWhileDragging)
self.assertArgHasType(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 1, NSPoint.__typestr__)
self.assertArgIsBOOL(TestNSDraggingHelper.draggedImage_endedAt_deposited_, 2)