tools/fuchsia/comparative_tester/test_results.py
def ReadTestFromJson(obj_dict: Dict[str, Any]) -> TestResult:
  """Reconstitutes a TestResult read from a JSON file back into a TestResult
  object.

  Args:
    obj_dict (Dict[str, Any]): The JSON object as read from an output JSON file.

  Returns:
    TestResult: The reconstituted TestResult object.
  """
  name = obj_dict["name"]
  time = obj_dict["time_in_ms"]
  lines = [ReadResultLineFromJson(line) for line in obj_dict["lines"]]
  return TestResult(name, time, lines)
Reconstitutes a TestResult read from a JSON file back into a TestResult
  object.

  Args:
    obj_dict (Dict[str, Any]): The JSON object as read from an output JSON file.

  Returns:
    TestResult: The reconstituted TestResult object.
  
Reconstitutes a TestResult read from a JSON file back into a TestResult
object.
Reconstitutes a TestResult read from a JSON file back into a TestResult object .
def ReadTestFromJson(obj_dict: Dict[str, Any]) -> TestResult:
  name = obj_dict["name"]
  time = obj_dict["time_in_ms"]
  lines = [ReadResultLineFromJson(line) for line in obj_dict["lines"]]
  return TestResult(name, time, lines)
def ReadTestFromJson ( obj_dict : Dict [ str , Any ] ) -> TestResult : name = obj_dict [ "name" ] time = obj_dict [ "time_in_ms" ] lines = [ ReadResultLineFromJson ( line ) for line in obj_dict [ "lines" ] ] return TestResult ( name , time , lines )
Reconstitutes a TestResult read from a JSON file back into a TestResult
object.
Reconstitutes a TestResult read from a JSON file back into a TestResult object .
"""Reconstitutes a TestResult read from a JSON file back into a TestResult
  object.

  Args:
    obj_dict (Dict[str, Any]): The JSON object as read from an output JSON file.

  Returns:
    TestResult: The reconstituted TestResult object.
  """
The reconstituted TestResult object.
The reconstituted TestResult object .
TestResult
obj_dict
Dict[str, Any]
The JSON object as read from an output JSON file.
The JSON object as read from an output JSON file .