|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Future Utils. More...
#include <gtest/gtest.h>#include <future>#include <chrono>#include <thread>#include <stdexcept>#include <atomic>#include <future_utils.H>Go to the source code of this file.
Classes | |
| class | FutureUtilsTest |
Functions | |
| TEST_F (FutureUtilsTest, GetFuturesEmptyList) | |
| TEST_F (FutureUtilsTest, GetFuturesSingleElement) | |
| TEST_F (FutureUtilsTest, GetFuturesMultipleElements) | |
| TEST_F (FutureUtilsTest, GetFuturesPreservesOrder) | |
| TEST_F (FutureUtilsTest, GetFuturesWithDelayedTasks) | |
| TEST_F (FutureUtilsTest, GetFuturesRvalue) | |
| TEST_F (FutureUtilsTest, GetVoidFuturesEmptyList) | |
| TEST_F (FutureUtilsTest, GetVoidFuturesSingleElement) | |
| TEST_F (FutureUtilsTest, GetVoidFuturesMultipleElements) | |
| TEST_F (FutureUtilsTest, GetVoidFuturesRvalue) | |
| TEST_F (FutureUtilsTest, GetFuturesPropagatesException) | |
| TEST_F (FutureUtilsTest, GetVoidFuturesPropagatesException) | |
| TEST_F (FutureUtilsTest, AllReadyEmptyList) | |
| TEST_F (FutureUtilsTest, AllReadyWithReadyFutures) | |
| TEST_F (FutureUtilsTest, AllReadyWithPendingFutures) | |
| TEST_F (FutureUtilsTest, AllReadyMixed) | |
| TEST_F (FutureUtilsTest, CountReadyEmptyList) | |
| TEST_F (FutureUtilsTest, CountReadyAllReady) | |
| TEST_F (FutureUtilsTest, CountReadyNoneReady) | |
| TEST_F (FutureUtilsTest, CountReadyPartiallyReady) | |
| TEST_F (FutureUtilsTest, GetFuturesWithStrings) | |
| TEST_F (FutureUtilsTest, GetFuturesWithDoubles) | |
| TEST_F (FutureUtilsTest, GetFuturesWithVectors) | |
| TEST_F (FutureUtilsTest, ManyFutures) | |
| TEST_F (FutureUtilsTest, ManyVoidFutures) | |
| TEST_F (FutureUtilsTest, FutureWithZeroValue) | |
| TEST_F (FutureUtilsTest, FutureWithNegativeValue) | |
| TEST_F (FutureUtilsTest, FutureWithEmptyString) | |
| int | main (int argc, char **argv) |
Tests for Future Utils.
Definition in file future_utils_test.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 502 of file future_utils_test.cc.
References Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| AllReadyEmptyList | |||
| ) |
Definition at line 266 of file future_utils_test.cc.
References Aleph::all_ready(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| AllReadyMixed | |||
| ) |
Definition at line 296 of file future_utils_test.cc.
References Aleph::all_ready(), Aleph::DynList< T >::append(), Aleph::get_futures(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| AllReadyWithPendingFutures | |||
| ) |
Definition at line 284 of file future_utils_test.cc.
References Aleph::all_ready(), Aleph::DynList< T >::append(), Aleph::get_futures(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| AllReadyWithReadyFutures | |||
| ) |
Definition at line 272 of file future_utils_test.cc.
References Aleph::all_ready(), Aleph::DynList< T >::append(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| CountReadyAllReady | |||
| ) |
Definition at line 321 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::count_ready(), Aleph::get_futures(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| CountReadyEmptyList | |||
| ) |
Definition at line 315 of file future_utils_test.cc.
References Aleph::count_ready(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| CountReadyNoneReady | |||
| ) |
Definition at line 336 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::count_ready(), Aleph::get_futures(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| CountReadyPartiallyReady | |||
| ) |
Definition at line 349 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::count_ready(), Aleph::get_futures(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| FutureWithEmptyString | |||
| ) |
Definition at line 487 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::DynList< T >::get_first(), Aleph::get_futures(), Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | FutureUtilsTest | , |
| FutureWithNegativeValue | |||
| ) |
Definition at line 476 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::DynList< T >::get_first(), Aleph::get_futures(), Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | FutureUtilsTest | , |
| FutureWithZeroValue | |||
| ) |
Definition at line 465 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::DynList< T >::get_first(), Aleph::get_futures(), Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | FutureUtilsTest | , |
| GetFuturesEmptyList | |||
| ) |
Definition at line 95 of file future_utils_test.cc.
References Aleph::get_futures(), Aleph::HTList::is_empty(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| GetFuturesMultipleElements | |||
| ) |
Definition at line 116 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), Aleph::HTList::is_empty(), Aleph::maps(), Aleph::HTList::size(), and GenericTraverse< Container >::traverse().
| TEST_F | ( | FutureUtilsTest | , |
| GetFuturesPreservesOrder | |||
| ) |
Definition at line 136 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), LocateFunctions< Container, Type >::get_it(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| GetFuturesPropagatesException | |||
| ) |
Definition at line 241 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| GetFuturesRvalue | |||
| ) |
Definition at line 173 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | FutureUtilsTest | , |
| GetFuturesSingleElement | |||
| ) |
Definition at line 104 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::DynList< T >::get_first(), Aleph::get_futures(), Aleph::HTList::is_empty(), Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | FutureUtilsTest | , |
| GetFuturesWithDelayedTasks | |||
| ) |
Definition at line 151 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), LocateFunctions< Container, Type >::get_it(), Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | FutureUtilsTest | , |
| GetFuturesWithDoubles | |||
| ) |
Definition at line 386 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), LocateFunctions< Container, Type >::get_it(), Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | FutureUtilsTest | , |
| GetFuturesWithStrings | |||
| ) |
Definition at line 371 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), LocateFunctions< Container, Type >::get_it(), Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | FutureUtilsTest | , |
| GetFuturesWithVectors | |||
| ) |
Definition at line 401 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), LocateFunctions< Container, Type >::get_it(), Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | FutureUtilsTest | , |
| GetVoidFuturesEmptyList | |||
| ) |
Definition at line 191 of file future_utils_test.cc.
References Aleph::get_futures(), Aleph::HTList::is_empty(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| GetVoidFuturesMultipleElements | |||
| ) |
Definition at line 207 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), Aleph::HTList::is_empty(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| GetVoidFuturesPropagatesException | |||
| ) |
Definition at line 251 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| GetVoidFuturesRvalue | |||
| ) |
Definition at line 221 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| GetVoidFuturesSingleElement | |||
| ) |
Definition at line 198 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), Aleph::HTList::is_empty(), and Aleph::maps().
| TEST_F | ( | FutureUtilsTest | , |
| ManyFutures | |||
| ) |
Definition at line 425 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), Aleph::HTList::is_empty(), Aleph::maps(), N, Aleph::HTList::size(), and GenericTraverse< Container >::traverse().
| TEST_F | ( | FutureUtilsTest | , |
| ManyVoidFutures | |||
| ) |
Definition at line 446 of file future_utils_test.cc.
References Aleph::DynList< T >::append(), Aleph::get_futures(), Aleph::HTList::is_empty(), Aleph::maps(), and N.