/external/clang/test/SemaObjC/ |
D | ivar-in-class-extension.m | 3 @interface SomeClass @end interface 5 int fn1(SomeClass *obj) { 6 … obj->privateIvar = 1; // expected-error {{'SomeClass' does not have a member named 'privateIvar}} 7 …return obj->publicIvar; // expected-error {{'SomeClass' does not have a member named 'publicIv… 10 @interface SomeClass () { interface in int 18 int fn2(SomeClass *obj) { 24 @implementation SomeClass implementation in SomeClass 26 int fn3(SomeClass *obj) { category 33 @interface SomeClass (Category) interface in Category 39 @interface SomeClass (Category1) interface in Category1
|
D | property-and-class-extension.m | 20 @interface SomeClass : Super { interface 28 @interface SomeClass () { interface in int 33 @implementation SomeClass implementation
|
/external/clang/test/Analysis/inlining/ |
D | false-positive-suppression.cpp | 43 class SomeClass { class 91 SomeClass *&getSomeClass() { in getSomeClass() 93 extern SomeClass *&opaqueClass(); in getSomeClass() 96 static SomeClass *sharedClass; in getSomeClass() 109 SomeClass *object = getSomeClass(); in testClass() 116 SomeClass *getNull() { in getNull() 120 SomeClass &returnNullReference() { in returnNullReference() 121 SomeClass *x = getNull(); in returnNullReference() 182 SomeClass *getNull() { in getNull() 195 SomeClass *ptr = NonTrivial().getNull(); in testAssignment() [all …]
|
D | false-positive-suppression.m | 43 @interface SomeClass interface 52 @interface SubOfSomeClass : SomeClass 58 @implementation SomeClass implementation 72 void testMethodReturningNull(SomeClass *sc) { 80 void testPropertyReturningNull(SomeClass *sc) { 99 int *result = SomeClass.classPropertyReturningNull; 106 void testSynthesizedPropertyReturningNull(SomeClass *sc) {
|
/external/clang/test/SemaObjCXX/Inputs/ |
D | nullability-consistency-2.h | 11 @interface SomeClass 13 @property (retain,nullable) SomeClass *property2; 14 - (nullable SomeClass *)method1; 15 - (void)method2:(nonnull SomeClass *)param; 16 @property (readonly, weak) SomeClass *property3; // expected-warning{{missing a nullability type sp… 19 @interface SomeClass () 20 @property (readonly, weak) SomeClass *property4; // expected-warning{{missing a nullability type sp…
|
/external/clang/test/Analysis/ |
D | NewDelete-checker-test.cpp | 118 class SomeClass { class 124 void g(SomeClass &c, ...); 147 void testUseRefArgAfterDelete(SomeClass &c) { in testUseRefArgAfterDelete() 153 SomeClass c; in testVariadicArgAfterDelete() 160 SomeClass *c = new SomeClass; in testUseMethodArgAfterDelete() 166 SomeClass *c = new SomeClass; in testUseThisAfterDelete()
|
D | nullability_nullonly.mm | 127 @interface SomeClass : NSObject interface 130 @implementation SomeClass (MethodReturn) implementation in MethodReturn 131 - (SomeClass * _Nonnull)testReturnsNilInNonnull { 132 SomeClass *local = nil; 136 - (SomeClass * _Nonnull)testReturnsCastSuppressedNilInNonnull { 137 SomeClass *local = nil; 138 return (SomeClass * _Nonnull)local; // no-warning 141 - (SomeClass * _Nonnull)testReturnsNilInNonnullWhenPreconditionViolated:(SomeClass * _Nonnull) p { 142 SomeClass *local = nil;
|
D | objc-message.m | 6 @interface SomeClass interface 11 void consistencyOfReturnWithNilReceiver(SomeClass *o) { 22 void maybeNilReceiverIsNotNilAfterMessage(SomeClass *o) { 31 void nilReceiverIsStillNilAfterMessage(SomeClass *o) {
|
D | new.cpp | 12 class SomeClass { class 111 SomeClass *c = new SomeClass; in testUseAfter() 168 SomeClass *c = new SomeClass; in testUsingThisAfterDelete()
|
/external/clang/test/CodeGenObjC/ |
D | property-incr-decr-1.m | 7 @interface SomeClass : Object interface 14 @implementation SomeClass implementation 21 SomeClass *o = [SomeClass new];
|
D | arc-loadweakretained-release.m | 6 @interface SomeClass : NSObject interface 10 @implementation SomeClass implementation 21 SomeClass *objPtr1 = [[SomeClass alloc] init]; 22 __weak SomeClass *weakRef = objPtr1;
|
/external/clang/test/CodeGenCXX/ |
D | debug-info-friend.cpp | 5 class SomeClass { class 10 SomeClass *x; 13 static void func(SomeClass::SomeType) { in func()
|
/external/python/cpython2/Lib/test/ |
D | test_weakset.py | 19 class SomeClass(object): class 31 return hash((SomeClass, self.value)) 41 self.items = [SomeClass(c) for c in ('a', 'b', 'c')] 42 self.items2 = [SomeClass(c) for c in ('x', 'y', 'z')] 43 self.letters = [SomeClass(c) for c in string.ascii_letters] 44 self.ab_items = [SomeClass(c) for c in 'ab'] 45 self.abcde_items = [SomeClass(c) for c in 'abcde'] 46 self.def_items = [SomeClass(c) for c in 'def'] 52 self.obj = SomeClass('F') 79 self.assertNotIn(SomeClass('F'), self.fs) [all …]
|
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/ |
D | AbstractByteBuddyMockMakerTest.java | 71 SomeClass mockOne = mockMaker.createMock(settingsFor(SomeClass.class), dummyHandler()); in should_mocks_have_different_interceptors() 72 SomeClass mockTwo = mockMaker.createMock(settingsFor(SomeClass.class), dummyHandler()); in should_mocks_have_different_interceptors() 83 …SomeClass mock = mockMaker.createMock(settingsFor(SomeClass.class, SomeInterface.class), dummyHand… in should_use_ancillary_Types() 124 class SomeClass {} class in AbstractByteBuddyMockMakerTest
|
/external/python/mock/mock/tests/ |
D | testpatch.py | 12 from mock.tests.support import SomeClass, is_instance 207 self.assertEqual(PTModule.SomeClass.class_attribute, 211 self.assertIsNone(PTModule.SomeClass.class_attribute, 258 @patch('%s.SomeClass' % __name__, spec=SomeClass) 260 self.assertEqual(SomeClass, MockSomeClass) 261 self.assertTrue(is_instance(SomeClass.wibble, MagicMock)) 262 self.assertRaises(AttributeError, lambda: SomeClass.not_wibble) 268 @patch.object(SomeClass, 'class_attribute', spec=SomeClass) 270 self.assertEqual(SomeClass.class_attribute, MockAttribute) 271 self.assertTrue(is_instance(SomeClass.class_attribute.wibble, [all …]
|
D | testhelpers.py | 16 class SomeClass(object): class 346 mock = create_autospec(SomeClass) 348 mock = create_autospec(SomeClass()) 422 obj = SomeClass() 451 class Sub(SomeClass): 452 attr = SomeClass() 490 class Sub(SomeClass): 491 attr = SomeClass() 526 class Sub(SomeClass): 527 attr = SomeClass() [all …]
|
D | testcallable.py | 6 from mock.tests.support import is_instance, X, SomeClass 107 class Multi(SomeClass, Sub): 148 mock = create_autospec(SomeClass, instance=True)
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testpatch.py | 10 from unittest.test.testmock.support import SomeClass, is_instance 203 self.assertEqual(PTModule.SomeClass.class_attribute, 207 self.assertIsNone(PTModule.SomeClass.class_attribute, 254 @patch('%s.SomeClass' % __name__, spec=SomeClass) 256 self.assertEqual(SomeClass, MockSomeClass) 257 self.assertTrue(is_instance(SomeClass.wibble, MagicMock)) 258 self.assertRaises(AttributeError, lambda: SomeClass.not_wibble) 264 @patch.object(SomeClass, 'class_attribute', spec=SomeClass) 266 self.assertEqual(SomeClass.class_attribute, MockAttribute) 267 self.assertTrue(is_instance(SomeClass.class_attribute.wibble, [all …]
|
D | testhelpers.py | 14 class SomeClass(object): class 365 mock = create_autospec(SomeClass) 367 mock = create_autospec(SomeClass()) 441 obj = SomeClass() 470 class Sub(SomeClass): 471 attr = SomeClass() 509 class Sub(SomeClass): 510 attr = SomeClass() 545 class Sub(SomeClass): 546 attr = SomeClass() [all …]
|
D | testcallable.py | 6 from unittest.test.testmock.support import is_instance, X, SomeClass 107 class Multi(SomeClass, Sub): 141 mock = create_autospec(SomeClass, instance=True)
|
/external/mockito/src/test/java/org/mockitousage/junitrunner/ |
D | DeepStubbingWithJUnitRunnerTest.java | 16 private final SomeClass someClass = new SomeClass(); 28 public static class SomeClass { class in DeepStubbingWithJUnitRunnerTest
|
/external/mockito/src/test/java/org/mockito/internal/util/ |
D | MockNameImplTest.java | 17 String name = new MockNameImpl(null, SomeClass.class).toString(); in shouldProvideTheNameForClass() 35 String name = new MockNameImpl("The Hulk", SomeClass.class).toString(); in shouldProvideTheGivenName() 40 private class SomeClass {} class in MockNameImplTest
|
D | MockUtilTest.java | 81 class SomeClass {} class in MockUtilTest 91 assertTrue(MockUtil.typeMockabilityOf(SomeClass.class).mockable()); in should_know_if_type_is_mockable()
|
/external/mockito/src/test/java/org/mockito/internal/creation/instance/ |
D | ConstructorInstantiatorTest.java | 17 static class SomeClass { class in ConstructorInstantiatorTest 44 …onstructorInstantiator(false, new Object[0]).newInstance(SomeClass.class).getClass(), SomeClass.cl… in creates_instances()
|
/external/clang/test/Index/ |
D | index-pch-objc.m | 4 @interface SomeClass interface 7 @implementation SomeClass implementation
|