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

Method MapTargetsToLabels

deps/v8/tools/mb/mb.py:914–933  ·  view source on GitHub ↗
(self, isolate_map, targets)

Source from the content-addressed store, hash-verified

912 )
913
914 def MapTargetsToLabels(self, isolate_map, targets):
915 labels = []
916 err = ''
917
918 for target in targets:
919 if target == 'all':
920 labels.append(target)
921 elif target.startswith('//'):
922 labels.append(target)
923 else:
924 if target in isolate_map:
925 if isolate_map[target]['type'] == 'unknown':
926 err += ('test target "%s" type is unknown\n' % target)
927 else:
928 labels.append(isolate_map[target]['label'])
929 else:
930 err += ('target "%s" not found in '
931 '//infra/mb/gn_isolate_map.pyl\n' % target)
932
933 return err, labels
934
935 def GNCmd(self, subcommand, path, *args):
936 if self.platform.startswith('linux'):

Callers 3

RunGNGenMethod · 0.95
RunGNIsolateMethod · 0.95
RunGNAnalyzeMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected