Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
patricia_trie_test.cc File Reference

Tests for Aleph::PatriciaSet and Aleph::PatriciaMap. More...

#include <prefix-tree.H>
#include <tpl_patricia_trie.H>
#include <tpl_radix_tree.H>
#include <gtest/gtest.h>
#include <algorithm>
#include <cstdint>
#include <limits>
#include <map>
#include <memory>
#include <random>
#include <set>
#include <string>
#include <type_traits>
#include <vector>
Include dependency graph for patricia_trie_test.cc:

Go to the source code of this file.

Functions

 TEST (PatriciaSet, DefaultConstructedSetIsEmpty)
 
 TEST (PatriciaSet, InsertAndContainsSingleKey)
 
 TEST (PatriciaSet, InsertRejectsDuplicateKeys)
 
 TEST (PatriciaSet, HandlesZeroAndExtremes)
 
 TEST (PatriciaSet, KeysReturnsAllStoredValues)
 
 TEST (PatriciaSet, EraseMissingKeyReturnsFalse)
 
 TEST (PatriciaSet, EraseOnlyKeyEmptiesSet)
 
 TEST (PatriciaSet, EraseCollapsesInternalNodeAndPreservesSibling)
 
 TEST (PatriciaSet, ClearRemovesAllKeys)
 
 TEST (PatriciaSet, CopyConstructorProducesIndependentClone)
 
 TEST (PatriciaSet, MoveConstructorTransfersKeysAndLeavesSourceEmpty)
 
 TEST (PatriciaSet, CopyAssignmentProducesIndependentClone)
 
 TEST (PatriciaSet, MoveAssignmentTransfersKeysAndLeavesSourceEmpty)
 
 TEST (PatriciaSet, SelfAssignmentDoesNotCorruptState)
 
 TEST (PatriciaSet, RandomizedOperationsMatchStdSet)
 
 TEST (PatriciaSet, MatchesRadixTreeAndPrefixTreeOnEncodedIntegerKeys)
 
 TEST (PatriciaMap, DefaultConstructedMapIsEmpty)
 
 TEST (PatriciaMap, InsertAndFindSingleValue)
 
 TEST (PatriciaMap, InsertRejectsDuplicateAndKeepsOriginalValue)
 
 TEST (PatriciaMap, DuplicateMoveInsertDoesNotConsumeValue)
 
 TEST (PatriciaMap, InsertOrAssignInsertsThenOverwrites)
 
 TEST (PatriciaMap, MutableFindAllowsInPlaceUpdate)
 
 TEST (PatriciaMap, EraseRemovesValueAndPreservesSibling)
 
 TEST (PatriciaMap, ClearRemovesAllValues)
 
 TEST (PatriciaMap, CopyConstructorProducesIndependentClone)
 
 TEST (PatriciaMap, MoveConstructorTransfersValuesAndLeavesSourceEmpty)
 
 TEST (PatriciaMap, CopyAssignmentProducesIndependentClone)
 
 TEST (PatriciaMap, MoveAssignmentTransfersValuesAndLeavesSourceEmpty)
 
 TEST (PatriciaMap, SelfAssignmentDoesNotCorruptState)
 
 TEST (PatriciaMap, RandomizedOperationsMatchStdMap)
 
 TEST (PatriciaMap, MatchesRadixTreeValuesAndPrefixTreeMembership)
 

Detailed Description

Tests for Aleph::PatriciaSet and Aleph::PatriciaMap.

Definition in file patricia_trie_test.cc.

Function Documentation

◆ TEST() [1/31]

◆ TEST() [2/31]

◆ TEST() [3/31]

◆ TEST() [4/31]

◆ TEST() [5/31]

TEST ( PatriciaMap  ,
DuplicateMoveInsertDoesNotConsumeValue   
)

◆ TEST() [6/31]

◆ TEST() [7/31]

◆ TEST() [8/31]

TEST ( PatriciaMap  ,
InsertOrAssignInsertsThenOverwrites   
)

◆ TEST() [9/31]

◆ TEST() [10/31]

TEST ( PatriciaMap  ,
MatchesRadixTreeValuesAndPrefixTreeMembership   
)

◆ TEST() [11/31]

◆ TEST() [12/31]

◆ TEST() [13/31]

TEST ( PatriciaMap  ,
MutableFindAllowsInPlaceUpdate   
)

◆ TEST() [14/31]

TEST ( PatriciaMap  ,
RandomizedOperationsMatchStdMap   
)

◆ TEST() [15/31]

◆ TEST() [16/31]

◆ TEST() [17/31]

◆ TEST() [18/31]

◆ TEST() [19/31]

◆ TEST() [20/31]

◆ TEST() [21/31]

◆ TEST() [22/31]

◆ TEST() [23/31]

◆ TEST() [24/31]

◆ TEST() [25/31]

◆ TEST() [26/31]

◆ TEST() [27/31]

TEST ( PatriciaSet  ,
MatchesRadixTreeAndPrefixTreeOnEncodedIntegerKeys   
)

◆ TEST() [28/31]

◆ TEST() [29/31]

◆ TEST() [30/31]

TEST ( PatriciaSet  ,
RandomizedOperationsMatchStdSet   
)

◆ TEST() [31/31]