tools/android/find_annotated_tests.py
def _GetBugId(test_annotations):
  """Find and return the test bug id from its annoation message elements"""
  # TODO(yolandyan): currently the script only supports on bug id per method,
  # add support for multiple bug id
  for content in test_annotations.items():
    if content and content.get('message'):
      search_result = re.search(_CRBUG_ID_PATTERN, content.get('message'))
      if search_result is not None:
        return int(search_result.group(1))
  return None
Find and return the test bug id from its annoation message elements
Find and return the test bug id from its annoation message elements
Find and return the test bug id from its annoation message elements
def _GetBugId(test_annotations):
  for content in test_annotations.items():
    if content and content.get('message'):
      search_result = re.search(_CRBUG_ID_PATTERN, content.get('message'))
      if search_result is not None:
        return int(search_result.group(1))
  return None
def _GetBugId ( test_annotations ) : for content in test_annotations . items ( ) : if content and content . get ( 'message' ) : search_result = re . search ( _CRBUG_ID_PATTERN , content . get ( 'message' ) ) if search_result is not None : return int ( search_result . group ( 1 ) ) return None
Find and return the test bug id from its annoation message elements
Find and return the test bug id from its annoation message elements
"""Find and return the test bug id from its annoation message elements""" # TODO(yolandyan): currently the script only supports on bug id per method, # add support for multiple bug id
test_annotations