![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
Tests for custom deck zones (deck-unique zones nested under a board zone). More...
#include <QStringList>#include <gtest/gtest.h>#include <libcockatrice/deck_list/deck_list.h>#include <libcockatrice/deck_list/deck_list_node_tree.h>#include <libcockatrice/deck_list/tree/deck_list_card_node.h>#include <libcockatrice/deck_list/tree/inner_deck_list_node.h>Functions | |
| TEST (DeckListZones, AddCustomZoneNestsUnderBoard) | |
| TEST (DeckListZones, CustomZoneNamesAreDeckUnique) | |
| TEST (DeckListZones, AddCustomZoneUnknownBoardFails) | |
| TEST (DeckListZones, MaybeboardIsLazilyCreated) | |
| TEST (DeckListZones, AddCardToCustomZoneKeepsBoardSemantics) | |
| TEST (DeckListZones, LegacyTopLevelZoneStillWorks) | |
| TEST (DeckListZones, RenameCustomZone) | |
| TEST (DeckListZones, MoveCustomZoneMovesCards) | |
| TEST (DeckListZones, RemoveCustomZoneRemovesCards) | |
| TEST (DeckListZones, EmptyCustomZoneIsKeptOnCardDeletion) | |
| TEST (DeckListZones, HashCountsCustomZoneCardsByBoard) | |
| TEST (DeckListZones, SideboardSizeCountsCustomZoneCards) | |
| TEST (DeckListZones, PlainExportIncludesMainAndSideCustomZones) | |
| TEST (DeckListZones, PlainExportSkipsMaybeboardCustomZones) | |
| TEST (DeckListZones, NativeRoundTripPreservesCustomZones) | |
| TEST (DeckListZones, MaybeboardCustomZoneCardsAreExcludedFromHash) | |
| int | main (int argc, char **argv) |
Tests for custom deck zones (deck-unique zones nested under a board zone).
Custom zones allow players to organize cards within a board (e.g. "Removal" under the mainboard) without changing the board semantics: cards in a custom zone under "main" are still mainboard cards for hashing, sideboard size, legality and export.
| int main | ( | int | argc, |
| char ** | argv ) |
| TEST | ( | DeckListZones | , |
| AddCardToCustomZoneKeepsBoardSemantics | ) |
| TEST | ( | DeckListZones | , |
| AddCustomZoneNestsUnderBoard | ) |
| TEST | ( | DeckListZones | , |
| AddCustomZoneUnknownBoardFails | ) |
| TEST | ( | DeckListZones | , |
| CustomZoneNamesAreDeckUnique | ) |
| TEST | ( | DeckListZones | , |
| EmptyCustomZoneIsKeptOnCardDeletion | ) |
| TEST | ( | DeckListZones | , |
| HashCountsCustomZoneCardsByBoard | ) |
| TEST | ( | DeckListZones | , |
| LegacyTopLevelZoneStillWorks | ) |
| TEST | ( | DeckListZones | , |
| MaybeboardCustomZoneCardsAreExcludedFromHash | ) |
| TEST | ( | DeckListZones | , |
| MaybeboardIsLazilyCreated | ) |
| TEST | ( | DeckListZones | , |
| MoveCustomZoneMovesCards | ) |
| TEST | ( | DeckListZones | , |
| NativeRoundTripPreservesCustomZones | ) |
| TEST | ( | DeckListZones | , |
| PlainExportIncludesMainAndSideCustomZones | ) |
| TEST | ( | DeckListZones | , |
| PlainExportSkipsMaybeboardCustomZones | ) |
| TEST | ( | DeckListZones | , |
| RemoveCustomZoneRemovesCards | ) |
| TEST | ( | DeckListZones | , |
| RenameCustomZone | ) |
| TEST | ( | DeckListZones | , |
| SideboardSizeCountsCustomZoneCards | ) |