GitHub user erenavsarogullari opened a pull request: https://github.com/apache/spark/pull/15143
[SPARK-17584][Test] - Add unit test coverage for TaskState and ExecutorState ## What changes were proposed in this pull request? - TaskState and ExecutorState expose isFailed and isFinished functions. It can be useful to add test coverage for different states. Currently, Other enums do not expose any functions so this PR aims just these two enums. - `private` access modifier is added for Finished Task States Set - A minor doc change is added. ## How was this patch tested? New Unit tests are added and run locally. You can merge this pull request into a Git repository by running: $ git pull https://github.com/erenavsarogullari/spark SPARK-17584 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/15143.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #15143 ---- commit 02c3b1b3a529f4954f55c8856a1e5d0dc218e6cf Author: erenavsarogullari <erenavsarogull...@gmail.com> Date: 2016-09-18T16:12:08Z New UT Cases are added for TaskState and ExecutorState enums. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org