Home
last modified time | relevance | path

Searched refs:given (Results 1 – 25 of 2425) sorted by relevance

12345678910>>...97

/external/python/cpython3/Lib/test/
Dtest_urllib.py846 given = "a b cd e f"
847 expect = given.replace(' ', hexescape(' '))
848 result = urllib.parse.quote(given)
851 expect = given.replace(' ', '+')
852 result = urllib.parse.quote_plus(given)
870 given = b"\xa2\xd8ab\xff"
872 result = urllib.parse.quote(given)
876 self.assertRaises(TypeError, urllib.parse.quote, given,
879 result = urllib.parse.quote_from_bytes(given)
886 given = "\xa2\xd8ab\xff"
[all …]
/external/mockito/src/test/java/org/mockitousage/
DCompilationWarningsTest.java51 willReturn(null).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
52 willReturn("a", 12).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
53 willReturn(1000).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
54 … willThrow(new NullPointerException()).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
55 …willThrow(new NullPointerException(), new IllegalArgumentException()).given(mock(IMethods.class)).… in no_warnings_for_most_common_api()
56 … willThrow(NullPointerException.class).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
58 … willAnswer(ignore()).willReturn(null).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
59 …willAnswer(ignore()).willReturn("a", 12).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
60 … willAnswer(ignore()).willReturn(1000).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
61 …willAnswer(ignore()).willThrow(new NullPointerException()).given(mock(IMethods.class)).objectRetur… in no_warnings_for_most_common_api()
[all …]
DPlaygroundWithDemoOfUnclonedParametersProblemTest.java19 import static org.mockito.BDDMockito.given;
46given(importLogDao.anyImportRunningOrRunnedToday(importType, currentDate)).willReturn(false); in shouldIncludeInitialLog()
47 … willAnswer(byCheckingLogEquals(initialLog)).given(importLogDao).include(any(ImportLogBean.class)); in shouldIncludeInitialLog()
65given(importLogDao.anyImportRunningOrRunnedToday(importType, currentDate)).willReturn(false); in shouldAlterFinalLog()
66 … willAnswer(byCheckingLogEquals(finalLog)).given(importLogDao).alter(any(ImportLogBean.class)); in shouldAlterFinalLog()
/external/python/cpython2/Misc/
Ddevelopers.txt4 This file is a running log of developers given permissions on SourceForge.
6 The purpose is to provide some institutional memory of who was given access
26 - David Malcolm was given commit access on Oct 27 2010 by GFB,
29 - Tal Einat was given commit access on Oct 4 2010 by MvL,
32 - Łukasz Langa was given commit access on Sep 08 2010 by GFB,
35 - Daniel Stutzbach was given commit access on Aug 22 2010 by MvL,
38 - Ask Solem was given commit access on Aug 17 2010 by MvL,
42 - George Boutsioukis was given commit access on Aug 10 2010
45 - Éric Araujo was given commit access on Aug 10 2010 by BAC,
48 - Terry Reedy was given commit access on Aug 04 2010 by MvL,
[all …]
/external/python/cpython2/Lib/test/
Dtest_urllib.py630 given = "a b cd e f"
631 expect = given.replace(' ', hexescape(' '))
632 result = urllib.quote(given)
635 expect = given.replace(' ', '+')
636 result = urllib.quote_plus(given)
657 given = hexescape(chr(num))
659 result = urllib.unquote(given)
662 result = urllib.unquote_plus(given)
666 escape_list.append(given)
680 given = '%xab'
[all …]
/external/mockito/src/test/java/org/mockitousage/junitrule/
DStrictJUnitRuleTest.java20 import static org.mockito.BDDMockito.given;
40 given(mock.simpleMethod(10)).willReturn("foo"); in ok_when_all_stubbings_used()
45 given(mock.simpleMethod(10)).willReturn("foo"); in ok_when_used_and_mismatched_argument()
55 given(mock.simpleMethod(10)).willReturn("foo"); in fails_when_unused_stubbings()
64 given(mock.simpleMethod(10)).willReturn("foo"); in test_failure_trumps_unused_stubbings()
109 willReturn("10").given(mock).simpleMethod(10) ; //used in fails_fast_when_stubbing_invoked_with_different_argument()
110 willReturn("20").given(mock).simpleMethod(20) ; //unused in fails_fast_when_stubbing_invoked_with_different_argument()
111 willReturn("30").given(mock).simpleMethod(30) ; //unused in fails_fast_when_stubbing_invoked_with_different_argument()
124 given(mock.simpleMethod(10)).willReturn("foo"); in verify_no_more_interactions_ignores_stubs()
150 given(mock.simpleMethod(10)).willReturn("foo"); in unused_stubs_with_multiple_mocks()
[all …]
/external/mockito/src/test/java/org/mockitousage/customization/
DBDDMockitoTest.java33 given(mock.simpleMethod("foo")).willReturn("bar"); in should_stub()
41 given(mock.simpleMethod("foo")).willThrow(new SomethingWasWrong()); in should_stub_with_throwable()
52 given(mock.simpleMethod("foo")).willThrow(SomethingWasWrong.class); in should_stub_with_throwable_class()
65given(mock.simpleMethod("foo")).willThrow(SomethingWasWrong.class, AnotherThingWasWrong.class); in should_stub_with_throwable_classes()
76 given(mock.simpleMethod(anyString())).willAnswer(new Answer<String>() { in should_stub_with_answer()
87 given(mock.simpleMethod(anyString())).will(new Answer<String>() { in should_stub_with_will_answer_alias()
98 given(mock.simpleMethod(anyString())) in should_stub_consecutively()
108 given(mock.objectReturningMethodNoArgs()) in should_return_consecutively()
121 .given(mock).simpleMethod(); in should_stub_consecutively_with_call_real_method()
129 willThrow(new SomethingWasWrong()).given(mock).voidMethod(); in should_stub_void()
[all …]
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithAdditionalAnswersTest.java20 import static org.mockito.BDDMockito.given;
49 given(iMethods.objectArgMethod(any())).will(returnsFirstArg()); in can_return_arguments_of_invocation()
50 given(iMethods.threeArgumentMethod(eq(0), any(), anyString())).will(returnsSecondArg()); in can_return_arguments_of_invocation()
51 given(iMethods.threeArgumentMethod(eq(1), any(), anyString())).will(returnsLastArg()); in can_return_arguments_of_invocation()
62given(iMethods.objectArgMethod(any())).will(answersWithDelay(sleepyTime, returnsFirstArg())); in can_return_after_delay()
74 given(iMethods.varargsObject(eq(1), any())).will(returnsArgAt(3)); in can_return_expanded_arguments_of_invocation()
81 given(iMethods.toIntPrimitive(anyInt())).will(returnsFirstArg()); in can_return_primitives_or_wrappers()
82 given(iMethods.toIntWrapper(anyInt())).will(returnsFirstArg()); in can_return_primitives_or_wrappers()
90 given(iMethods.simpleMethod(anyString())) in can_return_based_on_strongly_types_one_parameter_function()
104 given(iMethods.simpleMethod(anyString())) in will_execute_a_void_based_on_strongly_typed_one_parameter_function()
[all …]
DStrictStubbingEndToEndTest.java24 import static org.mockito.BDDMockito.given;
90 given(mock.simpleMethod("1")).willReturn("one"); in unnecessary_stubbing()
104 given(mock.simpleMethod(1)).willReturn(""); in mismatch()
118 given(mock.simpleMethod(1)).willReturn(""); in used()
127 given(mock.simpleMethod(1)).willReturn(""); in unused()
131 given(mock.simpleMethod(2)).willReturn(""); in mismatch()
140 given(mock.simpleMethod(1)).willReturn(""); in unused()
144 given(mock.simpleMethod(2)).willReturn(""); in mismatch()
154 given(mock.simpleMethod("1")).willReturn("one"); in unused()
158 given(mock.simpleMethod("1")).willReturn("one"); in unused2()
DStrictStubbingTest.java18 import static org.mockito.BDDMockito.given;
57 given(mock.simpleMethod(100)).willReturn("100"); in stubbed_method_is_implicitly_verified()
66 given(mock.simpleMethod(100)).willReturn("100"); in unused_stubbed_is_not_implicitly_verified()
80 given(mock.simpleMethod(100)).willReturn("100"); in stubbing_argument_mismatch()
92 given(mock.simpleMethod(100)).willReturn("100"); in unused_stubbing()
DStubbingWarningsTest.java20 import static org.mockito.BDDMockito.given;
51 given(mock.simpleMethod(100)).willReturn("100"); in stubbing_used()
61 given(mock.simpleMethod(100)).willReturn("100"); in unused_stubbed_is_not_implicitly_verified()
72 given(mock.simpleMethod(100)).willReturn("100"); in stubbing_argument_mismatch()
88 given(mock.simpleMethod(100)).willReturn("100"); in unused_stubbing()
/external/python/cpython2/Lib/json/tests/
Dtest_scanstring.py95 def assertScan(given, expect): argument
96 self.assertEqual(scanstring(given, 1, None, True),
97 (expect, len(given)))
98 if not isinstance(given, unicode):
99 given = unicode(given)
100 self.assertEqual(scanstring(given, 1, None, True),
101 (expect, len(given)))
/external/mockito/src/test/java/org/mockitousage/strictness/
DStrictnessPerMockTest.java26 import static org.mockito.BDDMockito.given;
55 given(lenientMock.simpleMethod(100)).willReturn("100"); in potential_stubbing_problem()
56 given(strictStubsMock.simpleMethod(100)).willReturn("100"); in potential_stubbing_problem()
73 given(lenientMock.simpleMethod(100)).willReturn("100"); in unnecessary_stubbing()
74 given(strictStubsMock.simpleMethod(100)).willReturn("100"); in unnecessary_stubbing()
93 given(lenientMock.simpleMethod(100)).willReturn("100"); in verify_no_more_invocations()
94 given(strictStubsMock.simpleMethod(100)).willReturn("100"); in verify_no_more_invocations()
/external/libdivsufsort/include/
Ddivsufsort.h.cmake68 * Constructs the suffix array of a given string.
71 * @param n The length of the given string.
79 * Constructs the burrows-wheeler transformed string of a given string.
83 * @param n The length of the given string.
100 * Constructs the burrows-wheeler transformed string of a given string and suffix array.
104 * @param n The length of the given string.
115 * Inverse BW-transforms a given BWTed string.
119 * @param n The length of the given string.
130 * Checks the correctness of a given suffix array.
133 * @param n The length of the given string.
[all …]
/external/python/cpython3/Doc/c-api/
Dcodec.rst16 the given *encoding*. This function always succeeds.
22 *object* is passed through the encoder function found for the given
31 *object* is passed through the decoder function found for the given
47 Get an encoder function for the given *encoding*.
51 Get a decoder function for the given *encoding*.
55 Get an :class:`~codecs.IncrementalEncoder` object for the given *encoding*.
59 Get an :class:`~codecs.IncrementalDecoder` object for the given *encoding*.
63 Get a :class:`~codecs.StreamReader` factory function for the given *encoding*.
67 Get a :class:`~codecs.StreamWriter` factory function for the given *encoding*.
75 Register the error handling callback function *error* under the given *name*.
[all …]
/external/python/cpython2/Doc/c-api/
Dcodec.rst16 the given *encoding*.
22 *object* is passed through the encoder function found for the given
31 *object* is passed through the decoder function found for the given
47 Get an encoder function for the given *encoding*.
51 Get a decoder function for the given *encoding*.
55 Get an :class:`~codecs.IncrementalEncoder` object for the given *encoding*.
59 Get an :class:`~codecs.IncrementalDecoder` object for the given *encoding*.
63 Get a :class:`~codecs.StreamReader` factory function for the given *encoding*.
67 Get a :class:`~codecs.StreamWriter` factory function for the given *encoding*.
75 Register the error handling callback function *error* under the given *name*.
[all …]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_PaddingFIFOQueueV2.pbtxt25 the given dimension, and DequeueMany will pad the given dimension with
26 zeros up to the maximum shape of all elements in the given batch.
41 If non-empty, this queue is placed in the given container.
48 If non-empty, this queue will be shared under the given name
56 size of any given element in the minibatch. See below for details.
Dapi_def_PaddingFIFOQueue.pbtxt23 the given dimension, and DequeueMany will pad the given dimension with
24 zeros up to the maximum shape of all elements in the given batch.
39 If non-empty, this queue is placed in the given container.
46 If non-empty, this queue will be shared under the given name
54 size of any given element in the minibatch. See below for details.
/external/mockito/src/test/java/org/mockito/internal/configuration/plugins/
DPluginLoaderTest.java43 willReturn(null).given(initializer).loadImpl(FooPlugin.class); in loads_alternative_plugin()
45 willReturn(expected).given(initializer).loadImpl(BarPlugin.class); in loads_alternative_plugin()
56 willReturn(null).given(initializer).loadImpl(FooPlugin.class); in loads_default_plugin()
57 willReturn(null).given(initializer).loadImpl(BarPlugin.class); in loads_default_plugin()
59 willReturn(expected).given(plugins).getDefaultPlugin(FooPlugin.class); in loads_default_plugin()
/external/mockito/src/test/java/org/mockito/internal/handler/
DInvocationNotifierHandlerTest.java26 import static org.mockito.BDDMockito.given;
62 given(mockHandler.handle(invocation)).willReturn("returned value"); in should_notify_all_listeners_when_calling_delegate_handler()
76 given(mockHandler.handle(invocation)).willReturn(computedException); in should_notify_all_listeners_when_called_delegate_handler_returns_ex()
90 given(mockHandler.handle(invocation)).willThrow(parseException); in should_notify_all_listeners_when_called_delegate_handler_throws_exception_and_rethrow_it()
105 …willThrow(new NullPointerException()).given(customListener).reportInvocation(any(MethodInvocationR… in should_report_listener_exception()
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DParameterizedConstructorInstantiatorTest.java28 import static org.mockito.BDDMockito.given;
73given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ ob… in should_instantiate_type_if_resolver_provide_matching_types()
86given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ ob… in should_fail_if_an_argument_instance_type_do_not_match_wanted_type()
98given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ nu… in should_report_failure_if_constructor_throws_exception()
111given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ ""… in should_instantiate_type_with_vararg_constructor()
/external/iptables/extensions/
Dlibipt_ttl.man4 Matches the given TTL value.
7 Matches if TTL is greater than the given TTL value.
10 Matches if TTL is less than the given TTL value.
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/
DTransliterator.java.patch11 - * transliterator given its ID. Valid IDs may be enumerated using <code>getAvailableIDs()</code>. …
59 * Returns a <code>Transliterator</code> object given its ID.
65 * @return A <code>Transliterator</code> object with the given ID
69 * Returns a <code>Transliterator</code> object given its ID.
76 * inverse of the given ID is instantiated.
77 * @return A <code>Transliterator</code> object with the given ID
78 * @exception IllegalArgumentException if the given ID is invalid.
/external/google-breakpad/src/testing/gtest/cmake/
Dinternal_utils.cmake158 # creates a named C++ executable that depends on the given libraries and
159 # is built from the given source files with the given compiler flags.
181 # creates a named target that depends on the given libs and is built
182 # from the given source files. dir/name.cc is implicitly included in
194 # creates a named C++ test that depends on the given libs and is built
195 # from the given source files with the given compiler flags.
203 # creates a named test target that depends on the given libs and is
204 # built from the given source files. Unlike cxx_test_with_flags,
213 # creates a Python test with the given name whose main module is in
/external/grpc-grpc/doc/
Dserver-reflection.md84 1. The FileDescriptorProto for a given file name
85 2. The FileDescriptorProto for the file with a given symbol
86 3. The FileDescriptorProto for the file with a given extension
87 4. The list of known extension tag numbers of a given type
104 backend servers have a mix of builds. For example, if a given message is moved
157 Any given request must either result in an error code or an answer, usually in
160 which FileDescriptorProtos have been sent on a given stream, for a given value
166 …ining_extension | transitive closure of file containing a given extension number of a given symb…
167 …nsions_of_type | ListAllExtensionsResponse containing all known extension numbers of a given type |

12345678910>>...97