Home
last modified time | relevance | path

Searched refs:tester (Results 1 – 25 of 203) sorted by relevance

123456789

/external/python/cpython2/Lib/test/
Dtest_ntpath.py15 def tester(fn, wantResult): function
22 tester('ntpath.splitext("foo.ext")', ('foo', '.ext'))
23 tester('ntpath.splitext("/foo/foo.ext")', ('/foo/foo', '.ext'))
24 tester('ntpath.splitext(".ext")', ('.ext', ''))
25 tester('ntpath.splitext("\\foo.ext\\foo")', ('\\foo.ext\\foo', ''))
26 tester('ntpath.splitext("foo.ext\\")', ('foo.ext\\', ''))
27 tester('ntpath.splitext("")', ('', ''))
28 tester('ntpath.splitext("foo.bar.ext")', ('foo.bar', '.ext'))
29 tester('ntpath.splitext("xx/foo.bar.ext")', ('xx/foo.bar', '.ext'))
30 tester('ntpath.splitext("xx\\foo.bar.ext")', ('xx\\foo.bar', '.ext'))
[all …]
/external/python/cpython3/Lib/test/
Dtest_ntpath.py17 def tester(fn, wantResult): function
49 tester('ntpath.splitext("foo.ext")', ('foo', '.ext'))
50 tester('ntpath.splitext("/foo/foo.ext")', ('/foo/foo', '.ext'))
51 tester('ntpath.splitext(".ext")', ('.ext', ''))
52 tester('ntpath.splitext("\\foo.ext\\foo")', ('\\foo.ext\\foo', ''))
53 tester('ntpath.splitext("foo.ext\\")', ('foo.ext\\', ''))
54 tester('ntpath.splitext("")', ('', ''))
55 tester('ntpath.splitext("foo.bar.ext")', ('foo.bar', '.ext'))
56 tester('ntpath.splitext("xx/foo.bar.ext")', ('xx/foo.bar', '.ext'))
57 tester('ntpath.splitext("xx\\foo.bar.ext")', ('xx\\foo.bar', '.ext'))
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StackFrame/
DGetValues002Test.java34 StackFrameTester tester = new StackFrameTester(StackTrace002Debuggee.BOOLEAN_SIGNAL); in testGetValues001_Boolean() local
36 MethodInfo suspensionMethodInfo = tester.addTestMethod("breakpointBoolean"); in testGetValues001_Boolean()
38 MethodInfo methodInfo = tester.addTestMethod("runBreakpointBoolean"); in testGetValues001_Boolean()
40 runStackFrameTest(tester, suspensionMethodInfo); in testGetValues001_Boolean()
50 StackFrameTester tester = new StackFrameTester(StackTrace002Debuggee.BYTE_SIGNAL); in testGetValues002_Byte() local
52 MethodInfo suspensionMethodInfo = tester.addTestMethod("breakpointByte"); in testGetValues002_Byte()
54 MethodInfo methodInfo = tester.addTestMethod("runBreakpointByte"); in testGetValues002_Byte()
56 runStackFrameTest(tester, suspensionMethodInfo); in testGetValues002_Byte()
66 StackFrameTester tester = new StackFrameTester(StackTrace002Debuggee.CHAR_SIGNAL); in testGetValues003_Char() local
68 MethodInfo suspensionMethodInfo = tester.addTestMethod("breakpointChar"); in testGetValues003_Char()
[all …]
DSetValues002Test.java34 StackFrameTester tester = new StackFrameTester(StackTrace002Debuggee.BOOLEAN_SIGNAL); in testSetValues001_Boolean() local
37 MethodInfo suspensionMethodInfo = tester.addTestMethod("breakpointBoolean"); in testSetValues001_Boolean()
39 MethodInfo methodInfo = tester.addTestMethod("runBreakpointBoolean"); in testSetValues001_Boolean()
41 runStackFrameTest(tester, suspensionMethodInfo); in testSetValues001_Boolean()
51 StackFrameTester tester = new StackFrameTester(StackTrace002Debuggee.BYTE_SIGNAL); in testSetValues002_Byte() local
54 MethodInfo suspensionMethodInfo = tester.addTestMethod("breakpointByte"); in testSetValues002_Byte()
56 MethodInfo methodInfo = tester.addTestMethod("runBreakpointByte"); in testSetValues002_Byte()
58 runStackFrameTest(tester, suspensionMethodInfo); in testSetValues002_Byte()
68 StackFrameTester tester = new StackFrameTester(StackTrace002Debuggee.CHAR_SIGNAL); in testSetValues003_Char() local
71 MethodInfo suspensionMethodInfo = tester.addTestMethod("breakpointChar"); in testSetValues003_Char()
[all …]
/external/guava/guava-testlib/test/com/google/common/testing/
DClassSanityTesterTest.java50 private final ClassSanityTester tester = new ClassSanityTester(); field in ClassSanityTesterTest
53 tester.forAllPublicStaticMethods(GoodEqualsFactory.class).testEquals(); in testEqualsOnReturnValues_good()
84 tester.forAllPublicStaticMethods(NoPublicStaticMethods.class).testEquals(); in testForAllPublicStaticMethods_noPublicStaticMethods()
97 tester.forAllPublicStaticMethods(BadEqualsFactory.class).testEquals(); in testEqualsOnReturnValues_bad()
114 tester.forAllPublicStaticMethods(GoodNullsFactory.class).testNulls(); in testNullsOnReturnValues_good()
126 tester in testNullsOnReturnValues_bad()
138 tester in testNullsOnReturnValues_returnTypeFiltered()
159 tester.forAllPublicStaticMethods(GoodSerializableFactory.class).testSerializable(); in testSerializableOnReturnValues_good()
173 tester.forAllPublicStaticMethods(BadSerializableFactory.class).testSerializable(); in testSerializableOnReturnValues_bad()
192 tester.forAllPublicStaticMethods(GoodEqualsFactory.class).testEqualsAndSerializable(); in testEqualsAndSerializableOnReturnValues_equalsIsGoodButNotSerializable()
[all …]
DEqualsTesterTest.java206 EqualsTester tester = new EqualsTester(); in testNullEqualityGroup() local
208 tester.addEqualityGroup((Object[]) null); in testNullEqualityGroup()
214 EqualsTester tester = new EqualsTester(); in testNullObjectInEqualityGroup() local
216 tester.addEqualityGroup(1, null, 3); in testNullObjectInEqualityGroup()
224 EqualsTester tester = new EqualsTester() in testSymmetryBroken() local
227 tester.testEquals(); in testSymmetryBroken()
238 EqualsTester tester = new EqualsTester() in testTransitivityBrokenInEqualityGroup() local
244 tester.testEquals(); in testTransitivityBrokenInEqualityGroup()
255 EqualsTester tester = new EqualsTester() in testUnequalObjectsInEqualityGroup() local
258 tester.testEquals(); in testUnequalObjectsInEqualityGroup()
[all …]
/external/grpc-grpc-java/android-interop-testing/app/src/main/java/io/grpc/android/integrationtest/
DInteropTask.java42 private final Tester tester; field in InteropTask
51 this.tester = new Tester(channel, interceptors); in InteropTask()
56 tester.setUp(); in onPreExecute()
73 tester.tearDown(); in doInBackground()
85 tester.emptyUnary(); in runTest()
88 tester.largeUnary(); in runTest()
94 tester.clientStreaming(); in runTest()
96 tester.serverStreaming(); in runTest()
98 tester.pingPong(); in runTest()
100 tester.emptyStream(); in runTest()
[all …]
/external/guava/guava-testlib/test/com/google/common/collect/testing/
DIteratorTesterTest.java44 IteratorTester<Integer> tester = in testCanCatchDifferentLengthOfIteration() local
51 assertFailure(tester); in testCanCatchDifferentLengthOfIteration()
55 IteratorTester<Integer> tester = in testCanCatchDifferentContents() local
62 assertFailure(tester); in testCanCatchDifferentContents()
66 IteratorTester<Integer> tester = in testCanCatchDifferentRemoveBehaviour() local
73 assertFailure(tester); in testCanCatchDifferentRemoveBehaviour()
86 IteratorTester<Integer> tester = in testUnknownOrderUnrecognizedElement() local
93 assertFailure(tester); in testUnknownOrderUnrecognizedElement()
158 IteratorTester<Integer> tester = in testCanWorkAroundSunJavaBug6529795InTargetIterator() local
171 tester.ignoreSunJavaBug6529795(); in testCanWorkAroundSunJavaBug6529795InTargetIterator()
[all …]
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/
DTestServiceClient.java90 private Tester tester = new Tester(); field in TestServiceClient
189 tester.setUp(); in setUp()
194 tester.tearDown(); in tearDown()
217 tester.emptyUnary(); in runTest()
221 tester.cacheableUnary(); in runTest()
226 tester.largeUnary(); in runTest()
230 tester.clientCompressedUnary(true); in runTest()
234 tester.clientCompressedUnary(false); in runTest()
238 tester.serverCompressedUnary(); in runTest()
242 tester.clientStreaming(); in runTest()
[all …]
/external/deqp/modules/glshared/
DglsTextureStateQueryTests.cpp47 static glw::GLenum mapTesterToPname (TesterType tester) in mapTesterToPname() argument
52 switch (tester) in mapTesterToPname()
96 static bool isPureIntTester (TesterType tester) in isPureIntTester() argument
103 switch (tester) in isPureIntTester()
139 static bool isPureUintTester (TesterType tester) in isPureUintTester() argument
146 switch (tester) in isPureUintTester()
300 static bool isCoreTester (TesterType tester) in isCoreTester() argument
302 return tester == TESTER_TEXTURE_SWIZZLE_R || in isCoreTester()
303 tester == TESTER_TEXTURE_SWIZZLE_G || in isCoreTester()
304 tester == TESTER_TEXTURE_SWIZZLE_B || in isCoreTester()
[all …]
/external/libxml2/
DMakefile.win15 test: tester.exe
22 tester.obj: $(SHARED_OBJS)
23 $(CC) $(CFLAGS) tester.c /out:tester.obj
25 tester.exe: tester.obj xml.lib
26 $(LD) $(LDFLAGS) /out:tester.exe tester.obj xml.lib
29 -del /f $(SHARED_OBJS) tester.obj
30 -del /f tester.exe
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Destimator_test_utils.py29 def assert_estimator_contract(tester, estimator_class): argument
42 tester.assertTrue('config' in attribute_names)
43 tester.assertTrue('evaluate' in attribute_names)
44 tester.assertTrue('export' in attribute_names)
45 tester.assertTrue('fit' in attribute_names)
46 tester.assertTrue('get_variable_names' in attribute_names)
47 tester.assertTrue('get_variable_value' in attribute_names)
48 tester.assertTrue('model_dir' in attribute_names)
49 tester.assertTrue('predict' in attribute_names)
/external/deqp/modules/gles31/functional/
Des31fSamplerStateQueryTests.cpp61 static bool isIsVectorQuery (TesterType tester) in isIsVectorQuery() argument
63 return tester == TESTER_TEXTURE_BORDER_COLOR; in isIsVectorQuery()
66 static bool isExtendedParamQuery (TesterType tester) in isExtendedParamQuery() argument
68 return tester == TESTER_TEXTURE_WRAP_S_CLAMP_TO_BORDER || in isExtendedParamQuery()
69 tester == TESTER_TEXTURE_WRAP_T_CLAMP_TO_BORDER || in isExtendedParamQuery()
70 tester == TESTER_TEXTURE_WRAP_R_CLAMP_TO_BORDER; in isExtendedParamQuery()
114 TesterType tester; in init() member
176 if (isExtendedParamQuery(states[stateNdx].tester)) in init()
184 states[stateNdx].tester)); in init()
186 else if (isIsVectorQuery(states[stateNdx].tester)) in init()
[all …]
Des31fTextureStateQueryTests.cpp61 static bool isIsVectorQuery (TesterType tester) in isIsVectorQuery() argument
63 return tester == TESTER_TEXTURE_BORDER_COLOR; in isIsVectorQuery()
66 static bool isExtendedParamQuery (TesterType tester) in isExtendedParamQuery() argument
68 return tester == TESTER_TEXTURE_WRAP_S_CLAMP_TO_BORDER || in isExtendedParamQuery()
69 tester == TESTER_TEXTURE_WRAP_T_CLAMP_TO_BORDER || in isExtendedParamQuery()
70 tester == TESTER_TEXTURE_WRAP_R_CLAMP_TO_BORDER; in isExtendedParamQuery()
132 TesterType tester; in init() member
217 if (!isLegalTesterForTarget(textureTargets[targetNdx].target, states[stateNdx].tester)) in init()
224 if (isExtendedParamQuery(states[stateNdx].tester)) in init()
233 states[stateNdx].tester)); in init()
[all …]
/external/autotest/server/site_tests/bluetooth_Sanity_LEDiscovery/
Dbluetooth_Sanity_LEDiscovery.py35 if self.tester:
83 if self.tester:
85 if not self.tester.setup('peripheral'):
88 self.tester.set_discoverable(True)
89 self.tester.set_advertising(True)
93 name, short_name ) = self.tester.read_info()
101 if self.tester:
118 if self.tester:
158 if self.tester:
159 self.tester.set_advertising(False)
[all …]
/external/clang/test/SemaObjCXX/
Ddeduction.mm43 template <typename T> struct tester {
49 template struct tester<id>;
50 template struct tester<id<Test1Protocol> >;
51 template struct tester<Class>;
52 template struct tester<Class<Test1Protocol> >;
53 template struct tester<Test1Class*>;
54 template struct tester<Test1Class<Test1Protocol>*>;
56 template struct tester<Test1Class>; // expected-note {{in instantiation}}
57 template struct tester<Test1Class<Test1Protocol> >; // expected-note {{in instantiation}}
/external/markdown/
Dtest-markdown.py315 tester = TestRunner()
317 tester.test_directory("tests/markdown-test", measure_time=True)
318 tester.test_directory("tests/misc", measure_time=True)
319 tester.test_directory("tests/extensions-x-tables")
320 tester.test_directory("tests/extensions-x-footnotes")
322 tester.test_directory("tests/safe_mode", measure_time=True, safe_mode="escape")
323 tester.test_directory("tests/extensions-x-wikilinks")
324 tester.test_directory("tests/extensions-x-toc")
325 tester.test_directory("tests/extensions-x-def_list")
326 tester.test_directory("tests/extensions-x-abbr")
[all …]
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/schedulers/
Drx-test.hpp364 std::shared_ptr<detail::test_type> tester; member in rxcpp::schedulers::test
369 , tester(t) in test()
409 std::shared_ptr<detail::test_type::test_type_worker> tester; member in rxcpp::schedulers::test::test_worker
417 , tester(t) in test_worker()
421 bool is_enabled() const {return tester->is_enabled();} in is_enabled()
422 long clock() const {return tester->clock();} in clock()
425 tester->schedule_absolute(when, a); in schedule_absolute()
429 tester->schedule_relative(when, a); in schedule_relative()
438tester->schedule_absolute(when, make_schedulable(*this, std::forward<Arg0>(a0), std::forward<ArgN>… in schedule_absolute()
447tester->schedule_relative(when, make_schedulable(*this, std::forward<Arg0>(a0), std::forward<ArgN>… in schedule_relative()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DSettableFutureTest.java32 private ListenableFutureTester tester; field in SettableFutureTest
39 tester = new ListenableFutureTester(future); in setUp()
40 tester.setUp(); in setUp()
52 tester.testCompletedFuture("value"); in testSetValue()
57 tester.testFailedFuture("failure"); in testSetFailure()
68 tester.testFailedFuture("failure"); in testSetFailureNull()
73 tester.testCancelledFuture(); in testCancel()
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DJava7CompatibilityTest.java34 ClassTester tester = new ClassTester(); in testJava7CompatibleInterface() local
35 reader.accept(new Java7Compatibility(tester, null, null), 0); in testJava7CompatibleInterface()
36 assertThat(tester.version).isEqualTo(Opcodes.V1_7); in testJava7CompatibleInterface()
37 assertThat(tester.bridgeMethods).isEqualTo(0); // make sure we strip bridge methods in testJava7CompatibleInterface()
38 assertThat(tester.clinitMethods).isEqualTo(1); // make sure we don't strip <clinit> in testJava7CompatibleInterface()
59 ClassTester tester = new ClassTester(); in testConcreteClassRedeclaresBridges() local
60 reader.accept(new Java7Compatibility(tester, null, null), 0); in testConcreteClassRedeclaresBridges()
61 assertThat(tester.version).isEqualTo(Opcodes.V1_7); in testConcreteClassRedeclaresBridges()
62 assertThat(tester.bridgeMethods).isEqualTo(2); in testConcreteClassRedeclaresBridges()
/external/autotest/server/site_tests/bluetooth_Sanity_Discovery/
Dbluetooth_Sanity_Discovery.py35 if self.tester:
83 if self.tester:
85 if not self.tester.setup('computer'):
88 self.tester.set_discoverable(True, self.DISCOVERABLE_TIMEOUT)
92 name, short_name ) = self.tester.read_info()
100 if self.tester:
117 if self.tester:
157 if self.tester:
158 self.tester.set_discoverable(False)
/external/autotest/server/site_tests/platform_HWwatchdog/
Dplatform_HWwatchdog.py33 tester = WatchdogTester(host)
35 if not tester.is_supported():
36 logging.info("INFO: %s not present. Skipping test." % tester.WD_DEV)
39 with tester:
40 self._stop_watchdog(host, tester.WD_DEV)
41 tester.trigger_watchdog()
/external/libchrome/base/metrics/
Dsingle_sample_metrics_unittest.cc58 HistogramTester tester; in TEST_F() local
64 tester.ExpectTotalCount(kMetricName, 0); in TEST_F()
70 HistogramTester tester; in TEST_F() local
82 tester.ExpectUniqueSample(kMetricName, kLastSample, 1); in TEST_F()
98 HistogramTester tester; in TEST_F() local
115 tester.ExpectUniqueSample(kMetricName, kSample1, 1); in TEST_F()
118 tester.ExpectUniqueSample(kMetricName, kSample1, 2); in TEST_F()
121 tester.ExpectUniqueSample(kMetricName2, kSample2, 1); in TEST_F()
/external/autotest/server/site_tests/bluetooth_SDP_ServiceSearchRequestBasic/
Dbluetooth_SDP_ServiceSearchRequestBasic.py33 self.tester.connect(self.adapter['Address'])
38 resp = self.tester.service_search_request(
45 resp = self.tester.service_search_request(
52 resp = self.tester.service_search_request(
60 resp = self.tester.service_search_request(
67 resp = self.tester.service_search_request(
84 if not self.tester.setup('computer'):
/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DAttributeValueTest.java205 EqualsTester tester = new EqualsTester(); in attributeValue_EqualsAndHashCode() local
206 tester.addEqualityGroup( in attributeValue_EqualsAndHashCode()
209 tester.addEqualityGroup(AttributeValue.stringAttributeValue("MyStringAttributeDiffValue")); in attributeValue_EqualsAndHashCode()
210 tester.addEqualityGroup( in attributeValue_EqualsAndHashCode()
212 tester.addEqualityGroup(AttributeValue.booleanAttributeValue(false)); in attributeValue_EqualsAndHashCode()
213 tester.addEqualityGroup( in attributeValue_EqualsAndHashCode()
215 tester.addEqualityGroup(AttributeValue.longAttributeValue(1234567L)); in attributeValue_EqualsAndHashCode()
216 tester.addEqualityGroup( in attributeValue_EqualsAndHashCode()
218 tester.addEqualityGroup(AttributeValue.doubleAttributeValue(1.234567)); in attributeValue_EqualsAndHashCode()
219 tester.testEquals(); in attributeValue_EqualsAndHashCode()

123456789