TestDataValidator implementation
| 270 | |
| 271 | // TestDataValidator implementation |
| 272 | bool TestDataValidator::IsValidHandDistribution(const int hand_dist[DDS_HANDS]) |
| 273 | { |
| 274 | int total = 0; |
| 275 | for (int hand = 0; hand < DDS_HANDS; hand++) { |
| 276 | if (hand_dist[hand] < 0 || hand_dist[hand] > 13) { |
| 277 | return false; |
| 278 | } |
| 279 | total += hand_dist[hand]; |
| 280 | } |
| 281 | |
| 282 | // Total should be reasonable for remaining cards |
| 283 | return total >= 0 && total <= 52; |
| 284 | } |
| 285 | |
| 286 | bool TestDataValidator::IsValidAggrTarget(const unsigned short aggrTarget[DDS_SUITS]) |
| 287 | { |
nothing calls this directly
no outgoing calls
no test coverage detected