testing/unexpected_passes_common/result_output.py
def OutputAffectedUrls(removed_urls, orphaned_urls=None):
  """Outputs URLs of affected expectations for easier consumption by the user.

  Outputs the following:

  1. A string suitable for passing to Chrome via the command line to
     open all bugs in the browser.
  2. A string suitable for copying into the CL description to associate the CL
     with all the affected bugs.
  3. A string containing any bugs that should be closable since there are no
     longer any associated expectations.

  Args:
    removed_urls: A set or list of strings containing bug URLs.
    orphaned_urls: A subset of |removed_urls| whose bugs no longer have any
        corresponding expectations.
  """
  removed_urls = list(removed_urls)
  removed_urls.sort()
  orphaned_urls = orphaned_urls or []
  orphaned_urls = list(orphaned_urls)
  orphaned_urls.sort()
  _OutputAffectedUrls(removed_urls, orphaned_urls)
  _OutputUrlsForClDescription(removed_urls, orphaned_urls)
Outputs URLs of affected expectations for easier consumption by the user.

  Outputs the following:

  1. A string suitable for passing to Chrome via the command line to
     open all bugs in the browser.
  2. A string suitable for copying into the CL description to associate the CL
     with all the affected bugs.
  3. A string containing any bugs that should be closable since there are no
     longer any associated expectations.

  Args:
    removed_urls: A set or list of strings containing bug URLs.
    orphaned_urls: A subset of |removed_urls| whose bugs no longer have any
        corresponding expectations.
  
Outputs URLs of affected expectations for easier consumption by the user.
Outputs the following.

1. A string suitable for passing to Chrome via the command line to
open all bugs in the browser.
2. A string suitable for copying into the CL description to associate the CL
with all the affected bugs.
3. A string containing any bugs that should be closable since there are no
longer any associated expectations.
Outputs URLs of affected expectations for easier consumption by the user . Outputs the following . 1 . A string suitable for passing to Chrome via the command line to open all bugs in the browser . 2 . A string suitable for copying into the CL description to associate the CL with all the affected bugs . 3 . A string containing any bugs that should be closable since there are no longer any associated expectations .
def OutputAffectedUrls(removed_urls, orphaned_urls=None):
  removed_urls = list(removed_urls)
  removed_urls.sort()
  orphaned_urls = orphaned_urls or []
  orphaned_urls = list(orphaned_urls)
  orphaned_urls.sort()
  _OutputAffectedUrls(removed_urls, orphaned_urls)
  _OutputUrlsForClDescription(removed_urls, orphaned_urls)
def OutputAffectedUrls ( removed_urls , orphaned_urls = None ) : removed_urls = list ( removed_urls ) removed_urls . sort ( ) orphaned_urls = orphaned_urls or [ ] orphaned_urls = list ( orphaned_urls ) orphaned_urls . sort ( ) _OutputAffectedUrls ( removed_urls , orphaned_urls ) _OutputUrlsForClDescription ( removed_urls , orphaned_urls )
Outputs URLs of affected expectations for easier consumption by the user.
Outputs URLs of affected expectations for easier consumption by the user .
"""Outputs URLs of affected expectations for easier consumption by the user.

  Outputs the following:

  1. A string suitable for passing to Chrome via the command line to
     open all bugs in the browser.
  2. A string suitable for copying into the CL description to associate the CL
     with all the affected bugs.
  3. A string containing any bugs that should be closable since there are no
     longer any associated expectations.

  Args:
    removed_urls: A set or list of strings containing bug URLs.
    orphaned_urls: A subset of |removed_urls| whose bugs no longer have any
        corresponding expectations.
  """
removed_urls
A set or list of strings containing bug URLs.
A set or list of strings containing bug URLs .
orphaned_urls
A subset of |removed_urls| whose bugs no longer have any
corresponding expectations.
A subset of |removed_urls| whose bugs no longer have any corresponding expectations .