Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
server_dump_zone_test.cpp File Reference

Tests for resolving a client's zone dump request against a zone's card count. More...

#include <QList>
#include <climits>
#include <gtest/gtest.h>
#include <libcockatrice/network/server/remote/game/dump_zone_range.h>
#include <vector>
Include dependency graph for server_dump_zone_test.cpp:

Functions

 TEST (ServerDumpZone, ForwardTakesLeadingCards)
 TEST (ServerDumpZone, ForwardTakingAllCardsCoversTheZone)
 TEST (ServerDumpZone, ForwardAskingForOneDumpsOne)
 TEST (ServerDumpZone, MinusOneMeansTheWholeZone)
 TEST (ServerDumpZone, ReversedTakesTrailingCards)
 TEST (ServerDumpZone, ReversedAskingForOneTakesTheLast)
 TEST (ServerDumpZone, ZeroDumpsNothing)
 TEST (ServerDumpZone, ForwardOversizedRequestIsClamped)
 TEST (ServerDumpZone, ReversedOversizedRequestIsClamped)
 TEST (ServerDumpZone, ReversedWholeZoneRequestStaysInRange)
 TEST (ServerDumpZone, OtherNegativeCountsDumpNothing)
 TEST (ServerDumpZone, EmptyZoneYieldsAnEmptyRange)
 TEST (ServerDumpZone, NonPositiveCardCountYieldsAnEmptyRange)
 TEST (ServerDumpZone, ResolvedRangeIsAlwaysWithinTheZone)

Detailed Description

Tests for resolving a client's zone dump request against a zone's card count.

Function Documentation

◆ TEST() [1/14]

TEST ( ServerDumpZone ,
EmptyZoneYieldsAnEmptyRange  )
Here is the call graph for this function:

◆ TEST() [2/14]

TEST ( ServerDumpZone ,
ForwardAskingForOneDumpsOne  )
Here is the call graph for this function:

◆ TEST() [3/14]

TEST ( ServerDumpZone ,
ForwardOversizedRequestIsClamped  )
Here is the call graph for this function:

◆ TEST() [4/14]

TEST ( ServerDumpZone ,
ForwardTakesLeadingCards  )
Here is the call graph for this function:

◆ TEST() [5/14]

TEST ( ServerDumpZone ,
ForwardTakingAllCardsCoversTheZone  )
Here is the call graph for this function:

◆ TEST() [6/14]

TEST ( ServerDumpZone ,
MinusOneMeansTheWholeZone  )
Here is the call graph for this function:

◆ TEST() [7/14]

TEST ( ServerDumpZone ,
NonPositiveCardCountYieldsAnEmptyRange  )
Here is the call graph for this function:

◆ TEST() [8/14]

TEST ( ServerDumpZone ,
OtherNegativeCountsDumpNothing  )
Here is the call graph for this function:

◆ TEST() [9/14]

TEST ( ServerDumpZone ,
ResolvedRangeIsAlwaysWithinTheZone  )
Here is the call graph for this function:

◆ TEST() [10/14]

TEST ( ServerDumpZone ,
ReversedAskingForOneTakesTheLast  )
Here is the call graph for this function:

◆ TEST() [11/14]

TEST ( ServerDumpZone ,
ReversedOversizedRequestIsClamped  )
Here is the call graph for this function:

◆ TEST() [12/14]

TEST ( ServerDumpZone ,
ReversedTakesTrailingCards  )
Here is the call graph for this function:

◆ TEST() [13/14]

TEST ( ServerDumpZone ,
ReversedWholeZoneRequestStaysInRange  )
Here is the call graph for this function:

◆ TEST() [14/14]

TEST ( ServerDumpZone ,
ZeroDumpsNothing  )
Here is the call graph for this function: