Home
last modified time | relevance | path

Searched refs:finder (Results 1 – 25 of 134) sorted by relevance

123456

/third_party/node/deps/npm/node_modules/node-gyp/test/
Dtest-find-visualstudio.js41 const finder = new TestVisualStudioFinder(semverV1, null, (err, info) => {
55 finder.findVisualStudio2017OrNewer = (cb) => {
56 finder.parseData(new Error(), '', '', cb)
58 finder.regSearchKeys = (keys, value, addOpts, cb) => {
77 finder.findVisualStudio()
83 const finder = new TestVisualStudioFinder({
92 finder.findVisualStudio2017OrNewer = (cb) => {
95 finder.parseData(null, data, '', cb)
97 finder.regSearchKeys = (keys, value, addOpts, cb) => {
110 finder.findVisualStudio()
[all …]
/third_party/python/Lib/test/test_importlib/source/
Dtest_finder.py49 finder = self.get_finder(root)
50 return self._find(finder, module, loader_only=True)
128 finder = self.machinery.FileFinder('', (self.machinery.SourceFileLoader,
133 loader = self._find(finder, 'mod', loader_only=True)
140 finder = self.machinery.FileFinder('', (self.machinery.SourceFileLoader,
142 finder._path_mtime = 42
143 finder.invalidate_caches()
144 self.assertEqual(finder._path_mtime, -1)
150 finder = self.get_finder(mapping['.root'])
151 found = self._find(finder, 'mod', loader_only=True)
[all …]
Dtest_case_sensitivity.py25 def finder(self, path): member in CaseSensitivityTest
40 sensitive_finder = self.finder(sensitive_path)
41 insensitive_finder = self.finder(insensitive_path)
67 def find(self, finder): argument
70 return finder.find_module(self.name)
80 def find(self, finder): argument
81 found = finder.find_spec(self.name)
/third_party/flutter/flutter/packages/flutter_driver/lib/src/common/
Dfind.dart16 /// A Flutter Driver command aimed at an object to be located by [finder].
19 /// required beyond the [finder] the implementation may override [serialize]
22 /// Constructs this command given a [finder].
23 CommandWithTarget(this.finder, {Duration timeout}) : super(timeout: timeout) {
24 if (finder == null)
30 : finder = SerializableFinder.deserialize(json),
34 final SerializableFinder finder;
36 /// This method is meant to be overridden if data in addition to [finder]
46 super.serialize()..addAll(finder.serialize());
49 /// A Flutter Driver command that waits until [finder] can locate the target.
[all …]
Dgesture.dart8 /// A Flutter Driver command that taps on a target widget located by [finder].
10 /// Creates a tap command to tap on a widget located by [finder].
11 Tap(SerializableFinder finder, { Duration timeout }) : super(finder, timeout: timeout);
38 /// dragging a widget located by the given [finder].
40 SerializableFinder finder,
46 }) : super(finder, timeout: timeout);
95 /// represented by [finder] has been scrolled completely into view.
97 /// Creates this command given a [finder] used to locate the widget to be
99 …ScrollIntoView(SerializableFinder finder, { this.alignment = 0.0, Duration timeout }) : super(find…
/third_party/flutter/flutter/packages/flutter_test/lib/src/
Dcontroller.dart41 /// Checks if `finder` exists in the tree.
42 bool any(Finder finder) {
44 return finder.evaluate().isNotEmpty;
58 /// Throws a [StateError] if `finder` is empty or matches more than
63 T widget<T extends Widget>(Finder finder) {
65 return finder.evaluate().single.widget;
71 /// Throws a [StateError] if `finder` is empty.
74 T firstWidget<T extends Widget>(Finder finder) {
76 return finder.evaluate().first.widget;
83 Iterable<T> widgetList<T extends Widget>(Finder finder) {
[all …]
/third_party/rust/crates/memchr/bench/src/memmem/
Dimp.rs36 let finder = memmem::Finder::new(needle).into_owned(); in prebuilt() localVariable
37 move |h| finder.find(h.as_bytes()).is_some() in prebuilt()
74 let finder = memmem::FinderRev::new(needle).into_owned(); in prebuilt() localVariable
75 move |h| finder.rfind(h.as_bytes()).is_some() in prebuilt()
115 fn finder(needle: &[u8]) -> memmem::Finder<'_> { in finder() function
122 finder(needle.as_bytes()).find(haystack.as_bytes()).is_some() in oneshot()
128 let finder = finder(needle.as_bytes()).into_owned(); in prebuilt() localVariable
129 move |h| finder.find(h.as_bytes()).is_some() in prebuilt()
139 |h, n| finder(n).find(h), in oneshotiter()
144 PrebuiltIter(finder(needle.as_bytes()).into_owned()) in prebuiltiter()
[all …]
/third_party/flutter/flutter/packages/flutter_driver/lib/src/extension/
Dextension.dart86 /// Signature for functions that run the given finder and return the [Element]
88 typedef FinderConstructor = Finder Function(SerializableFinder finder);
146 'ByText': (SerializableFinder finder) => _createByTextFinder(finder),
147 'ByTooltipMessage': (SerializableFinder finder) => _createByTooltipMessageFinder(finder),
148 'BySemanticsLabel': (SerializableFinder finder) => _createBySemanticsLabelFinder(finder),
149 'ByValueKey': (SerializableFinder finder) => _createByValueKeyFinder(finder),
150 'ByType': (SerializableFinder finder) => _createByTypeFinder(finder),
151 'PageBack': (SerializableFinder finder) => _createPageBackFinder(),
152 'Ancestor': (SerializableFinder finder) => _createAncestorFinder(finder),
153 'Descendant': (SerializableFinder finder) => _createDescendantFinder(finder),
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/reduce/
Dremove_unused_instruction_test.cpp32 RemoveUnusedInstructionReductionOpportunityFinder finder(true); in TEST() local
75 auto ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
111 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
140 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
168 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
195 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
221 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
230 RemoveUnusedInstructionReductionOpportunityFinder finder(true); in TEST() local
261 auto ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
292 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/reduce/
Dremove_unused_instruction_test.cpp32 RemoveUnusedInstructionReductionOpportunityFinder finder(true); in TEST() local
75 auto ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
111 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
140 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
168 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
195 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
221 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
230 RemoveUnusedInstructionReductionOpportunityFinder finder(true); in TEST() local
261 auto ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
292 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
[all …]
/third_party/spirv-tools/test/reduce/
Dremove_unused_instruction_test.cpp32 RemoveUnusedInstructionReductionOpportunityFinder finder(true); in TEST() local
75 auto ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
111 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
140 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
168 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
195 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
221 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
230 RemoveUnusedInstructionReductionOpportunityFinder finder(true); in TEST() local
261 auto ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
292 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
DConstantFoldingTest.h146 ConstantFinder<T> finder(constant); in constantFoundInAST()
147 mASTRoot->traverse(&finder); in constantFoundInAST()
148 return finder.found(); in constantFoundInAST()
154 ConstantFinder<T> finder(constantVector); in constantVectorFoundInAST()
155 mASTRoot->traverse(&finder); in constantVectorFoundInAST()
156 return finder.found(); in constantVectorFoundInAST()
168 ConstantFinder<T> finder(constantVector, faultTolerance); in constantVectorNearFoundInAST()
169 mASTRoot->traverse(&finder); in constantVectorNearFoundInAST()
170 return finder.found(); in constantVectorNearFoundInAST()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/test_utils/
DConstantFoldingTest.h146 ConstantFinder<T> finder(constant); in constantFoundInAST()
147 mASTRoot->traverse(&finder); in constantFoundInAST()
148 return finder.found(); in constantFoundInAST()
154 ConstantFinder<T> finder(constantVector); in constantVectorFoundInAST()
155 mASTRoot->traverse(&finder); in constantVectorFoundInAST()
156 return finder.found(); in constantVectorFoundInAST()
168 ConstantFinder<T> finder(constantVector, faultTolerance); in constantVectorNearFoundInAST()
169 mASTRoot->traverse(&finder); in constantVectorNearFoundInAST()
170 return finder.found(); in constantVectorNearFoundInAST()
/third_party/python/Lib/test/test_importlib/
Dtest_threaded_import.py146 finder = Finder()
147 sys.meta_path.insert(0, finder)
150 self.assertGreater(finder.numcalls, 0)
151 self.assertEqual(finder.x, finder.numcalls)
153 sys.meta_path.remove(finder)
158 finder = Finder()
164 finder.find_spec('')
172 self.assertGreater(finder.numcalls, 0)
173 self.assertEqual(finder.x, finder.numcalls)
Dtest_abc.py356 def finder(cls, spec): member in MetaPathFinderFindModuleTests
366 finder = self.finder(None)
370 found = finder.find_module(name, path)
376 finder = self.finder(spec)
377 found = finder.find_spec('blah', 'blah', None)
381 finder = self.finder(None)
384 found = finder.find_spec(name, path, None)
386 self.assertEqual(name, finder.called_for[0])
387 self.assertEqual(path, finder.called_for[1])
392 finder = self.finder(spec)
[all …]
/third_party/rust/crates/which-rs/src/
Dlib.rs19 mod finder; module
33 use crate::finder::Finder;
90 let finder = Finder::new(); in which_all() localVariable
92 finder.find(binary_name, env::var_os("PATH"), cwd, binary_checker) in which_all()
101 let finder = Finder::new(); in which_all_global() localVariable
103 finder.find( in which_all_global()
192 let finder = Finder::new(); in which_re_in() localVariable
194 finder.find_re(regex, paths, binary_checker) in which_re_in()
210 let finder = Finder::new(); in which_in_all() localVariable
212 finder.find(binary_name, paths, Some(cwd), binary_checker) in which_in_all()
[all …]
/third_party/protobuf/src/google/protobuf/
Dextension_set_heavy.cc327 GeneratedExtensionFinder finder(containing_type); in FindExtension() local
328 if (!FindExtensionInfoFromFieldNumber(wire_type, field, &finder, extension, in FindExtension()
333 DescriptorPoolExtensionFinder finder(ctx->data().pool, ctx->data().factory, in FindExtension() local
335 if (!FindExtensionInfoFromFieldNumber(wire_type, field, &finder, extension, in FindExtension()
377 GeneratedExtensionFinder finder(containing_type); in ParseField() local
378 return ParseField(tag, input, &finder, &skipper); in ParseField()
380 DescriptorPoolExtensionFinder finder(input->GetExtensionPool(), in ParseField() local
383 return ParseField(tag, input, &finder, &skipper); in ParseField()
392 GeneratedExtensionFinder finder(containing_type); in ParseMessageSet() local
393 return ParseMessageSet(input, &finder, &skipper); in ParseMessageSet()
[all …]
/third_party/python/Lib/
Dpkgutil.py26 def _get_spec(finder, name): argument
30 find_spec = finder.find_spec
32 loader = finder.find_module(name)
355 finder = ImpImporter(self.filename)
356 spec = _get_spec(finder, '__init__')
562 finder = get_importer(dir)
563 if finder is not None:
565 if hasattr(finder, 'find_spec'):
566 spec = finder.find_spec(final_name)
570 elif hasattr(finder, 'find_loader'):
[all …]
/third_party/python/Lib/test/test_importlib/frozen/
Dtest_finder.py15 finder = self.machinery.FrozenImporter
16 return finder.find_spec(name, path)
52 finder = self.machinery.FrozenImporter
55 return finder.find_module(name, path)
/third_party/flutter/flutter/packages/flutter_driver/lib/src/driver/
Ddriver.dart479 /// Taps at the center of the widget located by [finder].
480 Future<void> tap(SerializableFinder finder, { Duration timeout }) async {
481 await _sendCommand(Tap(finder, timeout: timeout));
484 /// Waits until [finder] locates the target.
485 Future<void> waitFor(SerializableFinder finder, { Duration timeout }) async {
486 await _sendCommand(WaitFor(finder, timeout: timeout));
489 /// Waits until [finder] can no longer locate the target.
490 Future<void> waitForAbsent(SerializableFinder finder, { Duration timeout }) async {
491 await _sendCommand(WaitForAbsent(finder, timeout: timeout));
510 …Future<DriverOffset> _getOffset(SerializableFinder finder, OffsetType type, { Duration timeout }) …
[all …]
/third_party/flutter/flutter/examples/layers/test/
Dgestures_test.dart16 final Finder finder = find.byType(GestureDemo);
18 MaterialColor getSwatch() => tester.state<GestureDemoState>(finder).swatch;
20 final Offset topLeft = tester.getTopLeft(finder);
21 await tester.tapAt(tester.getSize(finder).center(topLeft));
/third_party/flutter/flutter/examples/flutter_gallery/test/
Dlive_smoketest.dart125 /// Runs `finder` repeatedly until it finds one or more [Element]s.
126 Future<Finder> _waitForElement(Finder finder) async {
129 await _waitUntilFrame(() => finder.precache());
132 return finder;
136 Future<void> tap(Finder finder, { int pointer, int buttons = kPrimaryButton }) async {
137 await super.tap(await _waitForElement(finder), pointer: pointer, buttons: buttons);
140 Future<void> scrollIntoView(Finder finder, {double alignment}) async {
141 final Finder target = await _waitForElement(finder);
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dlist_body_test.dart16 final Finder finder = find.byType(Container);
17 finder.precache();
20 final Finder current = finder.at(i);
22 actual.add(tester.getRect(finder.at(i)));
24 expect(() => finder.at(expected.length), throwsRangeError);
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DFindSymbolNode.cpp48 SymbolFinder finder(symbolName); in FindSymbolNode() local
49 root->traverse(&finder); in FindSymbolNode()
50 return finder.getNode(); in FindSymbolNode()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DFindSymbolNode.cpp48 SymbolFinder finder(symbolName); in FindSymbolNode() local
49 root->traverse(&finder); in FindSymbolNode()
50 return finder.getNode(); in FindSymbolNode()

123456