Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def testMethods(self):
self.assertArgHasType(TestNSTextInputClientHelper.insertText_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.doCommandBySelector_, 0, objc._C_SEL)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 2, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.selectedRange, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.markedRange, NSRange.__typestr__)
self.assertResultIsBOOL(TestNSTextInputClientHelper.hasMarkedText)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, NSRect.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.characterIndexForPoint_, objc._C_NSUInteger)
self.assertArgHasType(TestNSTextInputClientHelper.characterIndexForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, 0, objc._C_NSUInteger)
self.assertResultHasType(TestNSTextInputClientHelper.windowLevel, objc._C_NSInteger)
def testMethods(self):
self.assertArgHasType(TestNSTextInputClientHelper.insertText_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.doCommandBySelector_, 0, objc._C_SEL)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 2, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.selectedRange, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.markedRange, NSRange.__typestr__)
self.assertResultIsBOOL(TestNSTextInputClientHelper.hasMarkedText)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, NSRect.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.characterIndexForPoint_, objc._C_NSUInteger)
self.assertArgHasType(TestNSTextInputClientHelper.characterIndexForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, 0, objc._C_NSUInteger)
self.assertResultHasType(TestNSTextInputClientHelper.windowLevel, objc._C_NSInteger)
def testMethods(self):
self.assertArgHasType(TestNSTextInputClientHelper.insertText_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.doCommandBySelector_, 0, objc._C_SEL)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 2, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.selectedRange, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.markedRange, NSRange.__typestr__)
self.assertResultIsBOOL(TestNSTextInputClientHelper.hasMarkedText)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, NSRect.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.characterIndexForPoint_, objc._C_NSUInteger)
self.assertArgHasType(TestNSTextInputClientHelper.characterIndexForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, 0, objc._C_NSUInteger)
self.assertResultHasType(TestNSTextInputClientHelper.windowLevel, objc._C_NSInteger)
def testMethods10_6(self):
self.assertResultIsBOOL(TestNSTextInputClientHelper.drawsVerticallyForCharacterAtIndex_)
self.assertArgHasType(TestNSTextInputClientHelper.drawsVerticallyForCharacterAtIndex_, 0, objc._C_NSInteger)
self.assertArgHasType(TestNSTextInputClientHelper.doCommandBySelector_, 0, objc._C_SEL)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 2, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.selectedRange, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.markedRange, NSRange.__typestr__)
self.assertResultIsBOOL(TestNSTextInputClientHelper.hasMarkedText)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, NSRect.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.characterIndexForPoint_, objc._C_NSUInteger)
self.assertArgHasType(TestNSTextInputClientHelper.characterIndexForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, 0, objc._C_NSUInteger)
self.assertResultHasType(TestNSTextInputClientHelper.windowLevel, objc._C_NSInteger)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 2, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.selectedRange, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.markedRange, NSRange.__typestr__)
self.assertResultIsBOOL(TestNSTextInputClientHelper.hasMarkedText)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, NSRect.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.characterIndexForPoint_, objc._C_NSUInteger)
self.assertArgHasType(TestNSTextInputClientHelper.characterIndexForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, 0, objc._C_NSUInteger)
self.assertResultHasType(TestNSTextInputClientHelper.windowLevel, objc._C_NSInteger)
def testMethods(self):
self.assertArgHasType(TestNSTextInputClientHelper.insertText_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.doCommandBySelector_, 0, objc._C_SEL)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 2, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.selectedRange, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.markedRange, NSRange.__typestr__)
self.assertResultIsBOOL(TestNSTextInputClientHelper.hasMarkedText)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, NSRect.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.characterIndexForPoint_, objc._C_NSUInteger)
self.assertArgHasType(TestNSTextInputClientHelper.characterIndexForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, 0, objc._C_NSUInteger)
self.assertResultHasType(TestNSTextInputClientHelper.windowLevel, objc._C_NSInteger)
def testMethods(self):
self.assertArgHasType(TestNSTextInputClientHelper.insertText_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.doCommandBySelector_, 0, objc._C_SEL)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 2, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.selectedRange, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.markedRange, NSRange.__typestr__)
self.assertResultIsBOOL(TestNSTextInputClientHelper.hasMarkedText)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, NSRect.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.characterIndexForPoint_, objc._C_NSUInteger)
self.assertArgHasType(TestNSTextInputClientHelper.characterIndexForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, 0, objc._C_NSUInteger)
self.assertResultHasType(TestNSTextInputClientHelper.windowLevel, objc._C_NSInteger)
def testMethods(self):
self.assertArgHasType(TestNSTextInputClientHelper.insertText_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.doCommandBySelector_, 0, objc._C_SEL)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 2, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.selectedRange, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.markedRange, NSRange.__typestr__)
self.assertResultIsBOOL(TestNSTextInputClientHelper.hasMarkedText)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, NSRect.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.characterIndexForPoint_, objc._C_NSUInteger)
self.assertArgHasType(TestNSTextInputClientHelper.characterIndexForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, 0, objc._C_NSUInteger)
self.assertResultHasType(TestNSTextInputClientHelper.windowLevel, objc._C_NSInteger)
def testMethods(self):
self.assertArgHasType(TestNSTextInputClientHelper.insertText_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.doCommandBySelector_, 0, objc._C_SEL)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 1, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.setMarkedText_selectedRange_replacementRange_, 2, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.selectedRange, NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.markedRange, NSRange.__typestr__)
self.assertResultIsBOOL(TestNSTextInputClientHelper.hasMarkedText)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.attributedSubstringForProposedRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, NSRect.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 0, NSRange.__typestr__)
self.assertArgHasType(TestNSTextInputClientHelper.firstRectForCharacterRange_actualRange_, 1, b'o^' + NSRange.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.characterIndexForPoint_, objc._C_NSUInteger)
self.assertArgHasType(TestNSTextInputClientHelper.characterIndexForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.fractionOfDistanceThroughGlyphForPoint_, 0, NSPoint.__typestr__)
self.assertResultHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, objc._C_CGFloat)
self.assertArgHasType(TestNSTextInputClientHelper.baselineDeltaForCharacterAtIndex_, 0, objc._C_NSUInteger)
self.assertResultHasType(TestNSTextInputClientHelper.windowLevel, objc._C_NSInteger)