|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Test Filter Iterator. More...
Go to the source code of this file.
Classes | |
| struct | ShowAll |
| struct | ShowNone |
| struct | ShowEven |
| struct | ShowOdd |
| struct | ShowGreaterThan |
| struct | ShowMultiCondition |
| struct | CountingFilter |
Typedefs | |
| using | DL = DynDlist< int > |
| using | DL_It = DL::Iterator |
Functions | |
| TEST (FilterIteratorBasic, DefaultConstructor) | |
| TEST (FilterIteratorBasic, ConstructWithContainer) | |
| TEST (FilterIteratorBasic, ConstructWithContainerAndFilter) | |
| TEST (FilterIteratorBasic, ForwardIteration) | |
| TEST (FilterIteratorBasic, BackwardIteration) | |
| TEST (FilterIteratorBasic, ResetFirst) | |
| TEST (FilterIteratorBasic, ResetLast) | |
| TEST (FilterIteratorBasic, HasCurrAtVariousPositions) | |
| TEST (FilterIteratorBasic, GetCurrReturnsCorrectItem) | |
| TEST (FilterIteratorBasic, IterationPastEnd) | |
| TEST (FilterIteratorFilter, ShowAll) | |
| TEST (FilterIteratorFilter, ShowNone) | |
| TEST (FilterIteratorFilter, PartialFilter) | |
| TEST (FilterIteratorFilter, ChangeFilter) | |
| TEST (FilterIteratorFilter, GetFilter) | |
| TEST (FilterIteratorFilter, StatefulFilter) | |
| TEST (FilterIteratorFilter, MultiConditionFilter) | |
| TEST (FilterIteratorBidirectional, ForwardThenBackward) | |
| TEST (FilterIteratorBidirectional, BackwardThenForward) | |
| TEST (FilterIteratorBidirectional, NextNeNoException) | |
| TEST (FilterIteratorBidirectional, PrevNeNoException) | |
| TEST (FilterIteratorBidirectional, AlternatingNextPrev) | |
| TEST (FilterIteratorBidirectional, ResetMethodsJumping) | |
| TEST (FilterIteratorContainer, EmptyContainer) | |
| TEST (FilterIteratorContainer, SingleItem) | |
| TEST (FilterIteratorContainer, LargeContainer) | |
| TEST (FilterIteratorContainer, GetContainerReturnsCorrectReference) | |
| TEST (FilterIteratorContainer, GetIteratorAccess) | |
| TEST (FilterIteratorContainer, HasContainer) | |
| TEST (FilterIteratorCookie, CookieStorage) | |
| TEST (FilterIteratorCookie, CookieInConstructor) | |
| TEST (FilterIteratorCookie, CookiePreservation) | |
| TEST (FilterIteratorCookie, SetCookieAfterConstruction) | |
| TEST (FilterIteratorCount, CountAll) | |
| TEST (FilterIteratorCount, CountFiltered) | |
| TEST (FilterIteratorCount, CountEmpty) | |
| TEST (FilterIteratorCount, CountNone) | |
| TEST (FilterIteratorEdge, AllItemsFilteredOut) | |
| TEST (FilterIteratorEdge, MultipleIteratorsOnSameContainer) | |
| TEST (FilterIteratorEdge, FirstItemFiltered) | |
| TEST (FilterIteratorEdge, LastItemFiltered) | |
| TEST (FilterIteratorEdge, OnlyMiddleItemsPasses) | |
| TEST (FilterIteratorEdge, SingleItemPasses) | |
| TEST (FilterIteratorTypes, ItemType) | |
| TEST (FilterIteratorTypes, IteratorType) | |
| TEST (FilterIteratorTypes, ContainerType) | |
| TEST (FilterIteratorTypes, FilterType) | |
| TEST (FilterIteratorDefaultFilters, ShowAllFilter) | |
| TEST (FilterIteratorDefaultFilters, ShowNoneFilter) | |
| TEST (FilterIteratorNewMethods, Empty) | |
| TEST (FilterIteratorNewMethods, ForEach) | |
| TEST (FilterIteratorNewMethods, ForEachEmpty) | |
| TEST (FilterIteratorNewMethods, FindIf) | |
| TEST (FilterIteratorNewMethods, FindIfNotFound) | |
| TEST (FilterIteratorNewMethods, FindIfEmpty) | |
| TEST (FilterIteratorExceptionSafety, ForwardAtEnd) | |
| TEST (FilterIteratorExceptionSafety, BackwardAtBeginning) | |
| int | main (int argc, char **argv) |
Tests for Test Filter Iterator.
Note: Updated to reflect header Doxygen group changes.
Definition in file test_filter_iterator.cc.
Definition at line 87 of file test_filter_iterator.cc.
| using DL_It = DL::Iterator |
Definition at line 88 of file test_filter_iterator.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 821 of file test_filter_iterator.cc.
References Aleph::maps().
| TEST | ( | FilterIteratorBasic | , |
| BackwardIteration | |||
| ) |
Definition at line 141 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::prev(), Aleph::Filter_Iterator< Container, It, Show_Item >::reset_last(), and Aleph::HTList::size().
| TEST | ( | FilterIteratorBasic | , |
| ConstructWithContainer | |||
| ) |
Definition at line 103 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::has_container(), and Aleph::maps().
| TEST | ( | FilterIteratorBasic | , |
| ConstructWithContainerAndFilter | |||
| ) |
Definition at line 114 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), and Aleph::maps().
| TEST | ( | FilterIteratorBasic | , |
| DefaultConstructor | |||
| ) |
Definition at line 92 of file test_filter_iterator.cc.
References Aleph::Filter_Iterator< Container, It, Show_Item >::get_container(), Aleph::Filter_Iterator< Container, It, Show_Item >::has_container(), and Aleph::maps().
| TEST | ( | FilterIteratorBasic | , |
| ForwardIteration | |||
| ) |
Definition at line 124 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), and Aleph::HTList::size().
| TEST | ( | FilterIteratorBasic | , |
| GetCurrReturnsCorrectItem | |||
| ) |
Definition at line 197 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
| TEST | ( | FilterIteratorBasic | , |
| HasCurrAtVariousPositions | |||
| ) |
Definition at line 184 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
| TEST | ( | FilterIteratorBasic | , |
| IterationPastEnd | |||
| ) |
Definition at line 210 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne().
| TEST | ( | FilterIteratorBasic | , |
| ResetFirst | |||
| ) |
Definition at line 159 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), and Aleph::Filter_Iterator< Container, It, Show_Item >::reset_first().
| TEST | ( | FilterIteratorBasic | , |
| ResetLast | |||
| ) |
Definition at line 172 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::reset_last().
| TEST | ( | FilterIteratorBidirectional | , |
| AlternatingNextPrev | |||
| ) |
Definition at line 398 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), and Aleph::Filter_Iterator< Container, It, Show_Item >::prev().
| TEST | ( | FilterIteratorBidirectional | , |
| BackwardThenForward | |||
| ) |
Definition at line 359 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), Aleph::Filter_Iterator< Container, It, Show_Item >::prev(), and Aleph::Filter_Iterator< Container, It, Show_Item >::reset_last().
| TEST | ( | FilterIteratorBidirectional | , |
| ForwardThenBackward | |||
| ) |
Definition at line 341 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), and Aleph::Filter_Iterator< Container, It, Show_Item >::prev().
| TEST | ( | FilterIteratorBidirectional | , |
| NextNeNoException | |||
| ) |
Definition at line 376 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne().
| TEST | ( | FilterIteratorBidirectional | , |
| PrevNeNoException | |||
| ) |
Definition at line 388 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::prev_ne().
| TEST | ( | FilterIteratorBidirectional | , |
| ResetMethodsJumping | |||
| ) |
Definition at line 413 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), Aleph::Filter_Iterator< Container, It, Show_Item >::reset_first(), and Aleph::Filter_Iterator< Container, It, Show_Item >::reset_last().
| TEST | ( | FilterIteratorContainer | , |
| EmptyContainer | |||
| ) |
Definition at line 433 of file test_filter_iterator.cc.
References Aleph::maps().
| TEST | ( | FilterIteratorContainer | , |
| GetContainerReturnsCorrectReference | |||
| ) |
Definition at line 467 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::get_container(), and Aleph::maps().
| TEST | ( | FilterIteratorContainer | , |
| GetIteratorAccess | |||
| ) |
Definition at line 477 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::get_iterator(), and Aleph::maps().
| TEST | ( | FilterIteratorContainer | , |
| HasContainer | |||
| ) |
Definition at line 487 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::has_container(), and Aleph::maps().
| TEST | ( | FilterIteratorContainer | , |
| LargeContainer | |||
| ) |
Definition at line 453 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::count(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
| TEST | ( | FilterIteratorContainer | , |
| SingleItem | |||
| ) |
Definition at line 441 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
| TEST | ( | FilterIteratorCookie | , |
| CookieInConstructor | |||
| ) |
Definition at line 511 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::get_cookie(), and Aleph::maps().
| TEST | ( | FilterIteratorCookie | , |
| CookiePreservation | |||
| ) |
Definition at line 520 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::get_cookie(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), and Aleph::Filter_Iterator< Container, It, Show_Item >::set_cookie().
| TEST | ( | FilterIteratorCookie | , |
| CookieStorage | |||
| ) |
Definition at line 500 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::get_cookie(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::set_cookie().
| TEST | ( | FilterIteratorCookie | , |
| SetCookieAfterConstruction | |||
| ) |
Definition at line 534 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::get_cookie(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::set_cookie().
| TEST | ( | FilterIteratorCount | , |
| CountAll | |||
| ) |
Definition at line 548 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::count(), and Aleph::maps().
| TEST | ( | FilterIteratorCount | , |
| CountEmpty | |||
| ) |
Definition at line 566 of file test_filter_iterator.cc.
References Aleph::Filter_Iterator< Container, It, Show_Item >::count(), and Aleph::maps().
| TEST | ( | FilterIteratorCount | , |
| CountFiltered | |||
| ) |
Definition at line 557 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::count(), and Aleph::maps().
| TEST | ( | FilterIteratorCount | , |
| CountNone | |||
| ) |
Definition at line 573 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::count(), and Aleph::maps().
| TEST | ( | FilterIteratorDefaultFilters | , |
| ShowAllFilter | |||
| ) |
Definition at line 695 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::count(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
| TEST | ( | FilterIteratorDefaultFilters | , |
| ShowNoneFilter | |||
| ) |
Definition at line 709 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), and Aleph::maps().
| TEST | ( | FilterIteratorEdge | , |
| AllItemsFilteredOut | |||
| ) |
Definition at line 584 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), and Aleph::maps().
| TEST | ( | FilterIteratorEdge | , |
| FirstItemFiltered | |||
| ) |
Definition at line 615 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), and Aleph::maps().
| TEST | ( | FilterIteratorEdge | , |
| LastItemFiltered | |||
| ) |
Definition at line 625 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::reset_last().
| TEST | ( | FilterIteratorEdge | , |
| MultipleIteratorsOnSameContainer | |||
| ) |
Definition at line 594 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), and Aleph::HTList::size().
| TEST | ( | FilterIteratorEdge | , |
| OnlyMiddleItemsPasses | |||
| ) |
Definition at line 635 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), and Aleph::HTList::size().
| TEST | ( | FilterIteratorEdge | , |
| SingleItemPasses | |||
| ) |
Definition at line 654 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
| TEST | ( | FilterIteratorExceptionSafety | , |
| BackwardAtBeginning | |||
| ) |
Definition at line 810 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::prev().
| TEST | ( | FilterIteratorExceptionSafety | , |
| ForwardAtEnd | |||
| ) |
Definition at line 798 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
| TEST | ( | FilterIteratorFilter | , |
| ChangeFilter | |||
| ) |
Definition at line 264 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::count(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), Aleph::Filter_Iterator< Container, It, Show_Item >::reset_first(), Aleph::Filter_Iterator< Container, It, Show_Item >::set_filter(), and Aleph::HTList::size().
| TEST | ( | FilterIteratorFilter | , |
| GetFilter | |||
| ) |
Definition at line 290 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::get_filter(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
| TEST | ( | FilterIteratorFilter | , |
| MultiConditionFilter | |||
| ) |
Definition at line 322 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), and Aleph::HTList::size().
| TEST | ( | FilterIteratorFilter | , |
| PartialFilter | |||
| ) |
Definition at line 250 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::count(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
| TEST | ( | FilterIteratorFilter | , |
| ShowAll | |||
| ) |
Definition at line 226 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::count(), Aleph::maps(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
| TEST | ( | FilterIteratorFilter | , |
| ShowNone | |||
| ) |
Definition at line 240 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), and Aleph::maps().
| TEST | ( | FilterIteratorFilter | , |
| StatefulFilter | |||
| ) |
Definition at line 306 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next(), and Aleph::HTList::size().
| TEST | ( | FilterIteratorNewMethods | , |
| Empty | |||
| ) |
Definition at line 722 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::empty(), Aleph::DynList< T >::empty(), and Aleph::maps().
| TEST | ( | FilterIteratorNewMethods | , |
| FindIf | |||
| ) |
Definition at line 759 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::find_if(), and Aleph::maps().
| TEST | ( | FilterIteratorNewMethods | , |
| FindIfEmpty | |||
| ) |
Definition at line 787 of file test_filter_iterator.cc.
References Aleph::Filter_Iterator< Container, It, Show_Item >::find_if(), and Aleph::maps().
| TEST | ( | FilterIteratorNewMethods | , |
| FindIfNotFound | |||
| ) |
Definition at line 773 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::find_if(), and Aleph::maps().
| TEST | ( | FilterIteratorNewMethods | , |
| ForEach | |||
| ) |
Definition at line 736 of file test_filter_iterator.cc.
References Aleph::DynDlist< T >::append(), Aleph::Filter_Iterator< Container, It, Show_Item >::for_each(), Aleph::maps(), and Aleph::sum().
| TEST | ( | FilterIteratorNewMethods | , |
| ForEachEmpty | |||
| ) |
Definition at line 749 of file test_filter_iterator.cc.
References Aleph::count(), Aleph::Filter_Iterator< Container, It, Show_Item >::for_each(), and Aleph::maps().
| TEST | ( | FilterIteratorTypes | , |
| ContainerType | |||
| ) |
Definition at line 683 of file test_filter_iterator.cc.
References Aleph::maps().
| TEST | ( | FilterIteratorTypes | , |
| FilterType | |||
| ) |
Definition at line 688 of file test_filter_iterator.cc.
References Aleph::maps().
| TEST | ( | FilterIteratorTypes | , |
| ItemType | |||
| ) |
Definition at line 673 of file test_filter_iterator.cc.
References Aleph::maps().
| TEST | ( | FilterIteratorTypes | , |
| IteratorType | |||
| ) |
Definition at line 678 of file test_filter_iterator.cc.
References Aleph::maps().