![]() |
Cockatrice 2026-06-01-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
|
Tests for Server_Card counter operations. More...
#include <gtest/gtest.h>#include <libcockatrice/network/server/remote/game/server_card.h>#include <libcockatrice/protocol/pb/event_set_card_counter.pb.h>#include <libcockatrice/utility/card_ref.h>#include <libcockatrice/utility/trice_limits.h>#include <limits>Functions | |
| TEST (ServerCardCounter, IncrementNewCounter) | |
| TEST (ServerCardCounter, IncrementExistingCounter) | |
| TEST (ServerCardCounter, IncrementOverflowProtection) | |
| TEST (ServerCardCounter, DecrementUnderflowProtection) | |
| TEST (ServerCardCounter, ReturnsFalseWhenUnchanged) | |
| TEST (ServerCardCounter, DecrementToZeroRemovesCounter) | |
| TEST (ServerCardCounter, SetToZeroRemovesCounter) | |
| TEST (ServerCardCounter, SetCounterReturnsFalseWhenUnchanged) | |
| TEST (ServerCardCounter, SetCounterReturnsTrueWhenChanged) | |
| TEST (ServerCardCounter, SetCounterEventNotPopulatedWhenUnchanged) | |
| TEST (ServerCardCounter, IncrementCounterPopulatesEvent) | |
| TEST (ServerCardCounter, IncrementCounterEventReflectsClampedValue) | |
| TEST (ServerCardCounter, IncrementCounterNoEventWhenNullptr) | |
| TEST (ServerCardCounter, IncrementCounterEventNotPopulatedWhenUnchanged) | |
| TEST (ServerCardCounter, SetCounterClampsNegativeToZero) | |
| TEST (ServerCardCounter, SetCounterClampsAboveMaxToMax) | |
| TEST (ServerCardCounter, IncrementDoesNotGoBelowZero) | |
| TEST (ServerCardCounter, IncrementDoesNotExceedMax) | |
| int | main (int argc, char **argv) |
Tests for Server_Card counter operations.
| int main | ( | int | argc, |
| char ** | argv ) |
| TEST | ( | ServerCardCounter | , |
| DecrementToZeroRemovesCounter | ) |
| TEST | ( | ServerCardCounter | , |
| DecrementUnderflowProtection | ) |
| TEST | ( | ServerCardCounter | , |
| IncrementCounterEventNotPopulatedWhenUnchanged | ) |
| TEST | ( | ServerCardCounter | , |
| IncrementCounterEventReflectsClampedValue | ) |
| TEST | ( | ServerCardCounter | , |
| IncrementCounterNoEventWhenNullptr | ) |
| TEST | ( | ServerCardCounter | , |
| IncrementCounterPopulatesEvent | ) |
| TEST | ( | ServerCardCounter | , |
| IncrementDoesNotExceedMax | ) |
| TEST | ( | ServerCardCounter | , |
| IncrementDoesNotGoBelowZero | ) |
| TEST | ( | ServerCardCounter | , |
| IncrementExistingCounter | ) |
| TEST | ( | ServerCardCounter | , |
| IncrementNewCounter | ) |
| TEST | ( | ServerCardCounter | , |
| IncrementOverflowProtection | ) |
| TEST | ( | ServerCardCounter | , |
| ReturnsFalseWhenUnchanged | ) |
| TEST | ( | ServerCardCounter | , |
| SetCounterClampsAboveMaxToMax | ) |
| TEST | ( | ServerCardCounter | , |
| SetCounterClampsNegativeToZero | ) |
| TEST | ( | ServerCardCounter | , |
| SetCounterEventNotPopulatedWhenUnchanged | ) |
| TEST | ( | ServerCardCounter | , |
| SetCounterReturnsFalseWhenUnchanged | ) |
| TEST | ( | ServerCardCounter | , |
| SetCounterReturnsTrueWhenChanged | ) |
| TEST | ( | ServerCardCounter | , |
| SetToZeroRemovesCounter | ) |