PythonUnitTestResultParser.ParserState

static final enum PythonUnitTestResultParser.ParserState
extends Enum<PythonUnitTestResultParser.ParserState>

java.lang.Object
   ↳ java.lang.Enum<com.android.tradefed.testtype.PythonUnitTestResultParser.ParserState>
     ↳ com.android.tradefed.testtype.PythonUnitTestResultParser.ParserState


Keeps track of the state the parser is currently in. Since the parser may receive an incomplete set of lines, it's important for the parse to be resumable. So we need to keep a record of the parser's current state, so we know which method to drop into from processNewLines. State progression: v------, TEST_CASE-'->[failed?]-(n)-->RUN_SUMMARY-->RUN_RESULT-->COMPLETE | ^ (y) '------(n)--, | ,---TRACEBACK---->[more?] v v ^ | FAIL_MESSAGE ---' (y) ^-------------------'

Summary

Enum values

PythonUnitTestResultParser.ParserState  COMPLETE

 

PythonUnitTestResultParser.ParserState  FAIL_MESSAGE

 

PythonUnitTestResultParser.ParserState  FAIL_MESSAGE_OPTIONAL_DOCSTRING

 

PythonUnitTestResultParser.ParserState  RUN_RESULT

 

PythonUnitTestResultParser.ParserState  RUN_SUMMARY

 

PythonUnitTestResultParser.ParserState  TEST_CASE

 

PythonUnitTestResultParser.ParserState  TRACEBACK

 

Public methods

static PythonUnitTestResultParser.ParserState valueOf(String name)
static final ParserState[] values()

Enum values

FAIL_MESSAGE

PythonUnitTestResultParser.ParserState FAIL_MESSAGE

FAIL_MESSAGE_OPTIONAL_DOCSTRING

PythonUnitTestResultParser.ParserState FAIL_MESSAGE_OPTIONAL_DOCSTRING

RUN_SUMMARY

PythonUnitTestResultParser.ParserState RUN_SUMMARY

Public methods

valueOf

PythonUnitTestResultParser.ParserState valueOf (String name)

Parameters
name String

Returns
PythonUnitTestResultParser.ParserState

values

ParserState[] values ()

Returns
ParserState[]