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
5
16
18
19class DomainTest : public Tests::Utils::ExecutionSpaceContextTest<TEST_EXECUTION_SPACE> { };
20
23
25TEST(DomainTest, not_default_domain_like_then) {
28 stdexec::then_t,
30 >());
31}
32
34TEST(DomainTest, not_default_domain_like_bulk) {
37 stdexec::bulk_t,
39 stdexec::parallel_policy,
40 int
41 >());
42}
43
45TEST(DomainTest, has_apply_sender_for_sync_wait) {
46 static_assert(stdexec::__detail::__has_apply_sender<
48 stdexec::sync_wait_t,
50 >);
51}
52
54TEST(DomainTest, has_transform_sender_for_then) {
57 stdexec::then_t,
59 >());
60}
61
63TEST(DomainTest, has_transform_sender_for_bulk) {
66 stdexec::bulk_t,
68 stdexec::parallel_policy,
69 int
70 >());
71}
72
73} // namespace Tests::ExecutionSpaceImpl
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