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

Tests for the deck list model's custom-zone shadow-tree helpers. More...

#include "deck_list_model_custom_zones.h"
#include "libcockatrice/deck_list/tree/abstract_deck_list_node.h"
#include <QList>
#include <QString>
#include <QStringList>
#include <gtest/gtest.h>
#include <libcockatrice/deck_list/tree/deck_list_card_node.h>
#include <libcockatrice/deck_list/tree/inner_deck_list_node.h>
#include <libcockatrice/models/deck_list/deck_list_model.h>
#include <qnamespace.h>
#include <string>
#include <utility>
Include dependency graph for deck_list_model_custom_zones_test.cpp:

Functions

 TEST (DeckListModelCustomZones, IsCustomZoneDistinguishesZoneFromGroup)
 TEST (DeckListModelCustomZones, FindSubZoneByNameFindsAcrossBoards)
 TEST (DeckListModelCustomZones, MirrorCustomZonesCopiesCardsFlat)
 TEST (DeckListModelCustomZones, MirrorCustomZonesWithNoCustomZonesIsNoop)
 TEST (DeckListModelCustomZones, MirrorCustomZonesFlattensNestedSubzones)
 TEST (DeckListModelCustomZones, FindGroupChildSkipsCustomZones)
 TEST (DeckListModelCustomZones, SortBoardKeepsCustomZonesAfterGroupsAscending)
 TEST (DeckListModelCustomZones, SortBoardKeepsCustomZonesAfterGroupsDescending)
 TEST (DeckListModelCustomZones, SortBoardMappingIsConsistent)
 TEST (DeckListModelCustomZones, SortPlainNodeDoesNotReorderCustomZones)
int main (int argc, char **argv)

Detailed Description

Tests for the deck list model's custom-zone shadow-tree helpers.

DeckListModelCustomZones centralizes every "what is / where is a custom zone" decision for the model's shadow tree: type testing, mirroring from the deck tree, name lookup, and the sort-with-custom-zones-last ordering. These tests exercise that logic directly on hand-built shadow trees, independent of the full model and card database machinery.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )
Here is the call graph for this function:

◆ TEST() [1/10]

TEST ( DeckListModelCustomZones ,
FindGroupChildSkipsCustomZones  )
Here is the call graph for this function:

◆ TEST() [2/10]

TEST ( DeckListModelCustomZones ,
FindSubZoneByNameFindsAcrossBoards  )
Here is the call graph for this function:

◆ TEST() [3/10]

TEST ( DeckListModelCustomZones ,
IsCustomZoneDistinguishesZoneFromGroup  )
Here is the call graph for this function:

◆ TEST() [4/10]

TEST ( DeckListModelCustomZones ,
MirrorCustomZonesCopiesCardsFlat  )
Here is the call graph for this function:

◆ TEST() [5/10]

TEST ( DeckListModelCustomZones ,
MirrorCustomZonesFlattensNestedSubzones  )
Here is the call graph for this function:

◆ TEST() [6/10]

TEST ( DeckListModelCustomZones ,
MirrorCustomZonesWithNoCustomZonesIsNoop  )
Here is the call graph for this function:

◆ TEST() [7/10]

TEST ( DeckListModelCustomZones ,
SortBoardKeepsCustomZonesAfterGroupsAscending  )
Here is the call graph for this function:

◆ TEST() [8/10]

TEST ( DeckListModelCustomZones ,
SortBoardKeepsCustomZonesAfterGroupsDescending  )
Here is the call graph for this function:

◆ TEST() [9/10]

TEST ( DeckListModelCustomZones ,
SortBoardMappingIsConsistent  )
Here is the call graph for this function:

◆ TEST() [10/10]

TEST ( DeckListModelCustomZones ,
SortPlainNodeDoesNotReorderCustomZones  )
Here is the call graph for this function: