kokkos-execution 0.0.1
Loading...
Searching...
No Matches
test_domain.cpp
Go to the documentation of this file.
1#include "gtest/gtest.h"
2
4
7
18
19namespace Tests::GraphImpl {
20
21class DomainTest : public Tests::Utils::GraphContextTest<TEST_EXECUTION_SPACE> { };
22
25
27TEST(DomainTest, not_default_domain_like_then) {
30 stdexec::then_t,
32 >());
33}
34
36TEST(DomainTest, not_default_domain_like_bulk) {
39 stdexec::bulk_t,
41 stdexec::parallel_policy,
42 int
43 >());
44}
45
47TEST(DomainTest, has_apply_sender_for_sync_wait) {
48 static_assert(stdexec::__detail::__has_apply_sender<
50 stdexec::sync_wait_t,
52 >);
53}
54
56TEST(DomainTest, has_transform_sender_for_then) {
59 stdexec::then_t,
61 >());
62}
63
65TEST(DomainTest, has_transform_sender_for_bulk) {
68 stdexec::bulk_t,
70 stdexec::parallel_policy,
71 int
72 >());
73}
74
75} // namespace Tests::GraphImpl
consteval bool check_if_domain_has_transform_sender_for()
Check if the domain has a transform of a Tag sender.
Definition domain.hpp:21
consteval bool check_if_default_domain_like_for()
Check if the domain's transform of a Tag sender is "default-like".
Definition domain.hpp:34
consteval bool check_if_common_domain_is_default()
Check if a domain has the stdexec::default_domain as common domain with a few other domains.
Definition domain.hpp:14
decltype(stdexec::schedule(std::declval< scheduler_t >())) schedule_sender_t
Definition context.hpp:29