MCPcopy Index your code
hub / github.com/nodejs/node / get_android_resources

Method get_android_resources

deps/v8/tools/testrunner/objects/testcase.py:621–641  ·  view source on GitHub ↗

Returns a list of absolute paths with additional files needed by the test case. Used to push additional files to Android devices.

(self)

Source from the content-addressed store, hash-verified

619 return result
620
621 def get_android_resources(self):
622 """Returns a list of absolute paths with additional files needed by the
623 test case.
624
625 Used to push additional files to Android devices.
626 """
627 if not self._get_source_path():
628 return []
629 result = set()
630 to_check = [self._get_source_path()]
631 # Recurse over all files until reaching a fixpoint.
632 while to_check:
633 next_resource = to_check.pop()
634 result.add(next_resource)
635 for resource in self._get_resources_for_file(next_resource):
636 # Only add files that exist on disc. The pattens we check for give some
637 # false positives otherwise.
638 if (resource not in result and resource.exists() and
639 not resource.is_dir()):
640 to_check.append(resource)
641 return sorted(list(result))
642
643
644class DuckProcessor:

Callers 1

__init__Method · 0.45

Calls 9

_get_source_pathMethod · 0.95
sortedFunction · 0.85
popMethod · 0.80
addMethod · 0.65
setFunction · 0.50
listFunction · 0.50
existsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected