String function ( String arg0 , String arg1 ) { int loc0 = arg0 . lastIndexOf ( '.' ) ; if ( loc0 == - 1 ) { return arg0 + arg1 ; } return arg0 . substring ( 0 , loc0 ) + arg1 ; }
if the path contains extension e.g . foo at the end of the file then it changes this . foo into newending so it has to contain the dot if we want to preserve it . if the path does n't contain an extension , it adds the ending to the path . concode_field_sep Set<String> mFailList concode_elem_sep Set<String> mCrashList concode_elem_sep String SSL_PATH concode_elem_sep Set<String> mSlowList concode_elem_sep String TOKEN_SLOW concode_elem_sep String LOG_TAG concode_elem_sep String TOKEN_FAIL concode_elem_sep String TEST_EXPECTATIONS_TXT_PATH concode_elem_sep String HTTP_TESTS_PATH concode_elem_sep String TOKEN_CRASH concode_field_sep void loadTestExpectations concode_elem_sep URL getUrl concode_elem_sep boolean isSlow concode_elem_sep String trimTrailingSlashIfPresent concode_elem_sep boolean isTestDir concode_elem_sep boolean isFail concode_elem_sep List<String> getPrefixes concode_elem_sep boolean isCrash concode_elem_sep boolean isTestFile