Implement Checks#areAllRequiredChecksPassing
Hard-coding "passing" state in the "CombinedCheckState"
enum makes it hard to decide whether all required
checker have passed when their combined check state
is "IN_PROGRESS".
This commit adds a new method to "Checks" interface
to calculate the "passing" state based on the
"CheckStateCount", which is also used to create
a combined check state.
This new method can be used by other code, e.g.
ChecksSubmitRule, who cares about whether all required
checkers have passed or not.
Change-Id: If16d42b46c15cf3ac40c45947cfd446d5c96f5ef
2 files changed