Home
last modified time | relevance | path

Searched refs:SomeClass (Results 1 – 25 of 47) sorted by relevance

12

/external/clang/test/SemaObjC/
Divar-in-class-extension.m3 @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
Dproperty-and-class-extension.m20 @interface SomeClass : Super { interface
28 @interface SomeClass () { interface in int
33 @implementation SomeClass implementation
/external/clang/test/Analysis/inlining/
Dfalse-positive-suppression.cpp43 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 …]
Dfalse-positive-suppression.m43 @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/
Dnullability-consistency-2.h11 @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/
DNewDelete-checker-test.cpp118 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()
Dnullability_nullonly.mm127 @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;
Dobjc-message.m6 @interface SomeClass interface
11 void consistencyOfReturnWithNilReceiver(SomeClass *o) {
22 void maybeNilReceiverIsNotNilAfterMessage(SomeClass *o) {
31 void nilReceiverIsStillNilAfterMessage(SomeClass *o) {
Dnew.cpp12 class SomeClass { class
111 SomeClass *c = new SomeClass; in testUseAfter()
168 SomeClass *c = new SomeClass; in testUsingThisAfterDelete()
/external/clang/test/CodeGenObjC/
Dproperty-incr-decr-1.m7 @interface SomeClass : Object interface
14 @implementation SomeClass implementation
21 SomeClass *o = [SomeClass new];
Darc-loadweakretained-release.m6 @interface SomeClass : NSObject interface
10 @implementation SomeClass implementation
21 SomeClass *objPtr1 = [[SomeClass alloc] init];
22 __weak SomeClass *weakRef = objPtr1;
/external/clang/test/CodeGenCXX/
Ddebug-info-friend.cpp5 class SomeClass { class
10 SomeClass *x;
13 static void func(SomeClass::SomeType) { in func()
/external/python/cpython2/Lib/test/
Dtest_weakset.py19 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/
DAbstractByteBuddyMockMakerTest.java71 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()
83SomeClass 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/
Dtestpatch.py12 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 …]
Dtesthelpers.py16 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 …]
Dtestcallable.py6 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/
Dtestpatch.py10 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 …]
Dtesthelpers.py14 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 …]
Dtestcallable.py6 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/
DDeepStubbingWithJUnitRunnerTest.java16 private final SomeClass someClass = new SomeClass();
28 public static class SomeClass { class in DeepStubbingWithJUnitRunnerTest
/external/mockito/src/test/java/org/mockito/internal/util/
DMockNameImplTest.java17 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
DMockUtilTest.java81 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/
DConstructorInstantiatorTest.java17 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/
Dindex-pch-objc.m4 @interface SomeClass interface
7 @implementation SomeClass implementation

12