![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
Tests for Server_Counter operations. More...
#include "libcockatrice/protocol/pb/color.pb.h"#include <QString>#include <gtest/gtest.h>#include <libcockatrice/network/server/remote/game/server_counter.h>#include <limits>#include <string>Functions | |
| TEST (ServerCounter, IncrementDoesNotOverflow) | |
| TEST (ServerCounter, DecrementDoesNotUnderflow) | |
| TEST (ServerCounter, SetCountReturnsFalseWhenUnchanged) | |
| TEST (ServerCounter, IncrementReturnsChangeStatus) | |
| TEST (ServerCounter, LargePositiveDeltaDoesNotOverflow) | |
| TEST (ServerCounter, LargeNegativeDeltaDoesNotUnderflow) | |
| TEST (ServerCounter, SetCountReturnsTrueWhenChanged) | |
| TEST (ServerCounter, BasicIncrementWorks) | |
| TEST (ServerCounter, MixedExtremesDoNotClamp) | |
| int | main (int argc, char **argv) |
Tests for Server_Counter operations.
| int main | ( | int | argc, |
| char ** | argv ) |
| TEST | ( | ServerCounter | , |
| BasicIncrementWorks | ) |
| TEST | ( | ServerCounter | , |
| DecrementDoesNotUnderflow | ) |
| TEST | ( | ServerCounter | , |
| IncrementDoesNotOverflow | ) |
| TEST | ( | ServerCounter | , |
| IncrementReturnsChangeStatus | ) |
| TEST | ( | ServerCounter | , |
| LargeNegativeDeltaDoesNotUnderflow | ) |
| TEST | ( | ServerCounter | , |
| LargePositiveDeltaDoesNotOverflow | ) |
| TEST | ( | ServerCounter | , |
| MixedExtremesDoNotClamp | ) |
| TEST | ( | ServerCounter | , |
| SetCountReturnsFalseWhenUnchanged | ) |
| TEST | ( | ServerCounter | , |
| SetCountReturnsTrueWhenChanged | ) |