testing/unexpected_passes_common/data_types.py
def SplitBuildStatsByPass(self, expectation):
    """Splits the underlying BuildStats data by passing-ness.

    Args:
      expectation: The Expectation that this BuilderStepMap is located under.

    Returns:
      A dict mapping builder name to a tuple (fully_passed, never_passed,
      partially_passed). Each *_passed is a StepBuildStatsMap containing data
      for the steps that either fully passed on all builds, never passed on any
      builds, or passed some of the time.
    """
    retval = {}
    for builder_name, step_map in self.items():
      fully_passed = StepBuildStatsMap()
      never_passed = StepBuildStatsMap()
      partially_passed = StepBuildStatsMap()

      for step_name, stats in step_map.items():
        if stats.NeverNeededExpectation(expectation):
          assert step_name not in fully_passed
          fully_passed[step_name] = stats
        elif stats.AlwaysNeededExpectation(expectation):
          assert step_name not in never_passed
          never_passed[step_name] = stats
        else:
          assert step_name not in partially_passed
          partially_passed[step_name] = stats
      retval[builder_name] = (fully_passed, never_passed, partially_passed)
    return retval
Splits the underlying BuildStats data by passing-ness.

    Args:
      expectation: The Expectation that this BuilderStepMap is located under.

    Returns:
      A dict mapping builder name to a tuple (fully_passed, never_passed,
      partially_passed). Each *_passed is a StepBuildStatsMap containing data
      for the steps that either fully passed on all builds, never passed on any
      builds, or passed some of the time.
    
Splits the underlying BuildStats data by passing-ness.
Splits the underlying BuildStats data by passing - ness .
def SplitBuildStatsByPass(self, expectation):
    retval = {}
    for builder_name, step_map in self.items():
      fully_passed = StepBuildStatsMap()
      never_passed = StepBuildStatsMap()
      partially_passed = StepBuildStatsMap()
      for step_name, stats in step_map.items():
        if stats.NeverNeededExpectation(expectation):
          assert step_name not in fully_passed
          fully_passed[step_name] = stats
        elif stats.AlwaysNeededExpectation(expectation):
          assert step_name not in never_passed
          never_passed[step_name] = stats
        else:
          assert step_name not in partially_passed
          partially_passed[step_name] = stats
      retval[builder_name] = (fully_passed, never_passed, partially_passed)
    return retval
def SplitBuildStatsByPass ( self , expectation ) : retval = { } for builder_name , step_map in self . items ( ) : fully_passed = StepBuildStatsMap ( ) never_passed = StepBuildStatsMap ( ) partially_passed = StepBuildStatsMap ( ) for step_name , stats in step_map . items ( ) : if stats . NeverNeededExpectation ( expectation ) : assert step_name not in fully_passed fully_passed [ step_name ] = stats elif stats . AlwaysNeededExpectation ( expectation ) : assert step_name not in never_passed never_passed [ step_name ] = stats else : assert step_name not in partially_passed partially_passed [ step_name ] = stats retval [ builder_name ] = ( fully_passed , never_passed , partially_passed ) return retval
Splits the underlying BuildStats data by passing-ness.
Splits the underlying BuildStats data by passing - ness .
"""Splits the underlying BuildStats data by passing-ness.

    Args:
      expectation: The Expectation that this BuilderStepMap is located under.

    Returns:
      A dict mapping builder name to a tuple (fully_passed, never_passed,
      partially_passed). Each *_passed is a StepBuildStatsMap containing data
      for the steps that either fully passed on all builds, never passed on any
      builds, or passed some of the time.
    """
A dict mapping builder name to a tuple (fully_passed, never_passed,
partially_passed). Each *_passed is a StepBuildStatsMap containing data
for the steps that either fully passed on all builds, never passed on any
builds, or passed some of the time.
A dict mapping builder name to a tuple ( fully_passed never_passed partially_passed ) . Each * _passed is a StepBuildStatsMap containing data for the steps that either fully passed on all builds never passed on any builds or passed some of the time .
self
expectation
The Expectation that this BuilderStepMap is located under.
The Expectation that this BuilderStepMap is located under .