parameters: (self, test=None)
docstring: Sets whether the alert is an improvement for the given test.
docstring_summary: Sets whether the alert is an improvement for the given test.
docstring_tokens: Sets whether the alert is an improvement for the given test .
function: def SetIsImprovement(self, test=None):
      """Sets whether the alert is an improvement for the given test."""
      if not test:
        test = self.GetTestMetadataKey().get()
      # |self.direction| is never equal to |UNKNOWN| (see the definition above)
      # so when the test improvement direction is |UNKNOWN|, |self.is_improvement|
      # will be False.
      self.is_improvement = (self.direction == test.improvement_direction)
function_tokens: def SetIsImprovement ( self , test = None ) : if not test : test = self . GetTestMetadataKey ( ) . get ( ) # |self.direction| is never equal to |UNKNOWN| (see the definition above) # so when the test improvement direction is |UNKNOWN|, |self.is_improvement| # will be False. self . is_improvement = ( self . direction == test . improvement_direction )