Home
last modified time | relevance | path

Searched refs:TestClass (Results 1 – 25 of 144) sorted by relevance

123456

/external/guava/guava-tests/test/com/google/common/base/
DToStringHelperTest.java49 String toTest = Objects.toStringHelper(new TestClass()).toString(); in testConstructor_innerClass()
54 String toTest = Objects.toStringHelper(new TestClass()).toString(); in testConstructorLenient_innerClass()
71 String toTest = Objects.toStringHelper(TestClass.class).toString(); in testConstructor_classObject()
76 String toTest = Objects.toStringHelper(TestClass.class).toString(); in testConstructorLenient_classObject()
154 String toTest = Objects.toStringHelper(new TestClass()) in testToString_oneField()
162 String toTest = Objects.toStringHelper(new TestClass()) in testToString_oneIntegerField()
170 String toTest = Objects.toStringHelper(new TestClass()) in testToString_nullInteger()
177 String toTest = Objects.toStringHelper(new TestClass()) in testToStringLenient_oneField()
184 String toTest = Objects.toStringHelper(new TestClass()) in testToStringLenient_oneIntegerField()
191 String toTest = Objects.toStringHelper(new TestClass()) in testToStringLenient_nullInteger()
[all …]
/external/dexmaker/dexmaker-mockito-tests/src/main/java/com/android/dx/mockito/tests/
DGeneralMocking.java40 public static class TestClass { class in GeneralMocking
62 public static class TestSubClass extends TestClass {
74 TestClass t = mock(TestClass.class); in mockClass()
94 TestClass originalT = new TestClass(); in spyClass()
95 TestClass t = spy(originalT); in spyClass()
108 TestClass t = spy(TestClass.class); in spyNewClass()
118 TestClass t = mock(TestClass.class); in verifyAdditionalInvocations()
138 TestClass t = spy(TestClass.class); in spyThrowingMethod()
152 TestClass t = spy(TestClass.class); in spyErrorMethod()
164 TestClass t = spy(TestClass.class); in spyExceptingMethod()
[all …]
/external/libcxx/test/std/utilities/function.objects/func.invoke/
Dinvoke.pass.cpp53 struct TestClass { struct
54 explicit TestClass(int x) : data(x) {} in TestClass() argument
68 TestClass(TestClass const&) = delete; argument
69 TestClass& operator=(TestClass const&) = delete;
72 struct DerivedFromTestClass : public TestClass {
73 explicit DerivedFromTestClass(int x) : TestClass(x) {} in DerivedFromTestClass()
84 typedef Signature TestClass::*ClassFunc; in test_b12()
85 ClassFunc func_ptr = &TestClass::operator(); in test_b12()
110 typedef int TestClass::*ClassFunc; in test_b34()
111 ClassFunc func_ptr = &TestClass::data; in test_b34()
[all …]
/external/clang/test/OpenMP/
Dsingle_codegen.cpp12 class TestClass { class
15 TestClass() : a(0) {} in TestClass() function in TestClass
16 TestClass(const TestClass &C) : a(C.a) {} in TestClass() function in TestClass
17 TestClass &operator=(const TestClass &) { return *this;} in operator =() argument
18 ~TestClass(){}; in ~TestClass()
29 TestClass tc;
30 TestClass tc2[2];
76 TestClass &c = tc; in main()
/external/tensorflow/tensorflow/python/autograph/pyct/
Dinspect_utils_test.py59 class TestClass(object): class
261 inspect_utils.getmethodclass(TestClass.member_function),
262 TestClass)
264 inspect_utils.getmethodclass(TestClass.decorated_member),
265 TestClass)
267 inspect_utils.getmethodclass(TestClass.fn_decorated_member),
268 TestClass)
270 inspect_utils.getmethodclass(TestClass.wrap_decorated_member),
271 TestClass)
273 inspect_utils.getmethodclass(TestClass.static_method),
[all …]
/external/mockito/src/test/java/org/mockito/
DInvocationFactoryTest.java21 static class TestClass { class in InvocationFactoryTest
27 final TestClass mock = spy(TestClass.class);
32 withSettings().build(TestClass.class), in call_method_that_throws_a_throwable()
33 TestClass.class.getDeclaredMethod("testMethod"), in call_method_that_throws_a_throwable()
54 withSettings().build(TestClass.class), in call_method_that_returns_a_string()
55 TestClass.class.getDeclaredMethod("testMethod"), in call_method_that_returns_a_string()
70 withSettings().build(TestClass.class), in deprecated_api_still_works()
71 TestClass.class.getDeclaredMethod("testMethod"), in deprecated_api_still_works()
/external/tensorflow/tensorflow/python/autograph/impl/
Dapi_test.py57 class TestClass(object): class
70 tc = TestClass()
80 class TestClass(object): class
91 tc = TestClass()
101 class TestClass(object): class
113 tc = TestClass()
122 class TestClass(object): class
139 tc = TestClass()
148 class TestClass(object): class
162 tc = TestClass()
[all …]
/external/junit/src/main/java/org/junit/validator/
DAnnotationsValidator.java13 import org.junit.runners.model.TestClass;
33 public List<Exception> validateTestClass(TestClass testClass) { in validateTestClass()
46 abstract Iterable<T> getAnnotatablesForTestClass(TestClass testClass); in getAnnotatablesForTestClass()
51 public List<Exception> validateTestClass(TestClass testClass) { in validateTestClass()
79 private static class ClassValidator extends AnnotatableValidator<TestClass> {
81 Iterable<TestClass> getAnnotatablesForTestClass(TestClass testClass) { in getAnnotatablesForTestClass()
87 AnnotationValidator validator, TestClass testClass) { in validateAnnotatable()
96 TestClass testClass) { in getAnnotatablesForTestClass()
110 Iterable<FrameworkField> getAnnotatablesForTestClass(TestClass testClass) { in getAnnotatablesForTestClass()
/external/mockito/src/test/java/org/mockito/internal/session/
DDefaultMockitoSessionBuilderTest.java49 TestClass testClass = new TestClass(); in creates_sessions_for_multiple_test_class_instances_for_repeated_calls()
50 TestClass.NestedTestClass nestedTestClass = testClass.new NestedTestClass(); in creates_sessions_for_multiple_test_class_instances_for_repeated_calls()
59 TestClass testClass = new TestClass(); in creates_sessions_for_multiple_test_class_instances_for_varargs_call()
60 TestClass.NestedTestClass nestedTestClass = testClass.new NestedTestClass(); in creates_sessions_for_multiple_test_class_instances_for_varargs_call()
69 TestClass testClass = new TestClass(); in uses_logger_and_strictness()
100 class TestClass { class in DefaultMockitoSessionBuilderTest
/external/dexmaker/dexmaker-mockito-inline-extended-tests/src/main/java/com/android/dx/mockito/inline/extended/tests/
DSpyOn.java43 public class TestClass { class in SpyOn
53 TestClass t = new TestClass(); in spyOnLocalClass()
67 TestClass t = new TestClass(); in localFieldStaysTheSame()
78 TestClass original = new TestClass(); in spiesAreUsuallyClones()
83 TestClass spy = spy(original); in spiesAreUsuallyClones()
DMockInstanceUsingExtendedMockito.java37 private TestClass mockField;
39 public static class TestClass { class in MockInstanceUsingExtendedMockito
47 TestClass t = mock(TestClass.class); in mockClass()
74 TestClass t = mock(TestClass.class); in verifyInOrder()
88 TestClass t = mock(TestClass.class); in mockClassUsingDoReturn()
/external/icu/icu4c/source/test/intltest/
Dsimplethread.h64 template<class TestClass>
67 void (TestClass::*fRunFnPtr)(int32_t);
69 ThreadPool(TestClass *test, int howMany, void (TestClass::*runFnPtr)(int32_t threadNumber)) : in ThreadPool()
74 TestClass *test = dynamic_cast<TestClass *>(fIntlTest); in callFn()
/external/tensorflow/tensorflow/python/autograph/utils/
Dpy_func_test.py47 class TestClass(object): class
56 result = py_func.wrap_py_func(test_fn, dtypes.int32, (7, TestClass()))
59 (constant_op.constant(7), TestClass()))
64 class TestClass(object): class
73 result = py_func.wrap_py_func(test_fn, dtypes.int32, (7, TestClass(5)), {
75 'd': TestClass(13)
79 (constant_op.constant(7), TestClass(5)), {
81 'd': TestClass(13)
/external/mockito/subprojects/inline/src/test/java/org/mockitoinline/
DStressTest.java15 public class TestClass { class in StressTest
25 TestClass mock = mock(TestClass.class); in call_a_lot_of_mocks()
29 TestClass serializableMock = mock(TestClass.class, withSettings().serializable()); in call_a_lot_of_mocks()
/external/tensorflow/tensorflow/python/autograph/converters/
Dcontrol_flow_test.py86 class TestClass(object): class
93 tc = TestClass()
99 test_fn, constant_op.constant(5), 0, symbols={'TestClass': TestClass})
105 class TestClass(collections.namedtuple('TestClass', ('x'))): class
109 tc = TestClass([constant_op.constant(0)])
111 tc = TestClass([constant_op.constant(3)])
116 ns = {'TestClass': TestClass, 'constant_op': constant_op}
122 class TestClass(object): class
129 tc = TestClass()
135 test_fn, control_flow, {'TestClass': TestClass}) as result:
[all …]
Dcall_trees_test.py89 class TestClass(object): class
94 tc = TestClass()
95 with self.converted(TestClass.test_method, call_trees, {}) as result:
102 class TestClass(object): class
107 tc = TestClass()
/external/tensorflow/tensorflow/tools/docs/
Dparser_test.py55 class TestClass(ParentClass): class
153 'TestClass': TestClass,
154 'TestClass.a_method': TestClass.a_method,
155 'TestClass.a_property': TestClass.a_property,
156 'TestClass.ChildClass': TestClass.ChildClass,
157 'TestClass.CLASS_MEMBER': TestClass.CLASS_MEMBER
179 full_name='TestClass', py_object=TestClass, parser_config=parser_config)
183 tf_inspect.getdoc(TestClass).split('\n')[0], page_info.doc.brief)
186 self.assertEqual(TestClass.a_method, page_info.methods[0].obj)
192 self.assertIs(TestClass.a_property, page_info.properties[0].obj)
[all …]
/external/clang/test/SemaObjC/
Derror-missing-getter.m22 @interface TestClass interface
27 if (TestClass.setterOnly) { // expected-error {{no getter method for read from property}}
28 TestClass.setterOnly = 1;
30 … func(TestClass.setterOnly + 1, x); // expected-error {{no getter method for read from property}} \
32 int i = TestClass.setterOnly + 1; // expected-error {{no getter method for read from property}}
33 return TestClass.setterOnly + 1; // expected-error {{no getter method for read from property}}
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/EventModifiers/
DCountModifierDebuggee.java39 static class TestClass { class in CountModifierDebuggee
50 private void countAndCall(TestClass obj) { in countAndCall()
55 private static void catchException(TestClass obj) { in catchException()
73 TestClass obj = new TestClass(); in run()
DInstanceOnlyModifierDebuggee.java31 static class TestClass { class in InstanceOnlyModifierDebuggee
60 static TestClass INSTANCE_ONLY;
68 final TestClass[] instances = new TestClass[10]; in run()
70 instances[i] = new TestClass(); in run()
DThreadOnlyModifierDebuggee.java31 static class TestClass { class in ThreadOnlyModifierDebuggee
39 private final TestClass obj;
41 public TestThread(TestClass obj) { in TestThread()
81 TestClass obj = new TestClass(); in run()
/external/dexmaker/dexmaker-mockito-inline-tests/src/main/java/com/android/dx/mockito/inline/tests/
DMultipleJvmtiAgentsInterference.java31 public static class TestClass { class in MultipleJvmtiAgentsInterference
45 TestClass t = mock(TestClass.class); in otherAgentTransformsWhileMocking()
54 nativeRetransformClasses(new Class<?>[]{TestClass.class}); in otherAgentTransformsWhileMocking()
/external/catch2/projects/SelfTest/UsageTests/
DClass.tests.cpp16 class TestClass class
21 TestClass() in TestClass() function in __anon6fb5b94f0111::ClassTests::TestClass
65 METHOD_AS_TEST_CASE( TestClass::succeedingCase, "A METHOD_AS_TEST_CASE based test run that succeeds…
66 METHOD_AS_TEST_CASE( TestClass::failingCase, "A METHOD_AS_TEST_CASE based test run that fails", "[.…
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/
DInvokeMethodDefault002Debuggee.java47 static class TestClass implements TestInterface { class in InvokeMethodDefault002Debuggee
54 return TestClass.RETURN_VALUE; in testDefaultMethod()
59 static TestClass invokeReceiver = new TestClass();
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dlive_values_test.py114 class TestClass(object): class
123 TestClass.test_fn, {'constant_op': constant_op},
124 arg_types={'self': (TestClass.__name__, TestClass)})
126 self.assertEquals(TestClass.member, anno.getanno(func_node, 'live_val'))
127 self.assertEquals(TestClass, anno.getanno(func_node, 'parent_type'))

123456