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)->TEST_SUMMARY-->TEST_STATUS-->COMPLETE | ^ (y) '------(n)--, | ,-TEST_TRACEBACK->[more?] v v ^ | FAIL_MESSAGE ---' (y) ^-------------------'

Summary

Enum values

PythonUnitTestResultParser.ParserState  COMPLETE

 

PythonUnitTestResultParser.ParserState  FAIL_MESSAGE

 

PythonUnitTestResultParser.ParserState  TEST_CASE

 

PythonUnitTestResultParser.ParserState  TEST_STATUS

 

PythonUnitTestResultParser.ParserState  TEST_SUMMARY

 

PythonUnitTestResultParser.ParserState  TEST_TRACEBACK

 

Public methods

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

Enum values

FAIL_MESSAGE

PythonUnitTestResultParser.ParserState FAIL_MESSAGE

TEST_STATUS

PythonUnitTestResultParser.ParserState TEST_STATUS

TEST_SUMMARY

PythonUnitTestResultParser.ParserState TEST_SUMMARY

TEST_TRACEBACK

PythonUnitTestResultParser.ParserState TEST_TRACEBACK

Public methods

valueOf

PythonUnitTestResultParser.ParserState valueOf (String name)

Parameters
name String
Returns
PythonUnitTestResultParser.ParserState

values

ParserState[] values ()

Returns
ParserState[]