kokkos-execution
0.0.1
Toggle main menu visibility
Loading...
Searching...
No Matches
test_completion_signatures.cpp
Go to the documentation of this file.
1
#include "gtest/gtest.h"
2
3
#include "
kokkos-execution/stdexec.hpp
"
4
15
16
namespace
Tests
{
17
18
consteval
bool
test_completion_signatures_operator_equal_checks_for_set_equality
() {
19
constexpr
auto
empty = stdexec::completion_signatures<>{};
20
constexpr
auto
sigs1 =
21
stdexec::completion_signatures<stdexec::set_value_t(
int
), stdexec::set_error_t(std::exception_ptr)>{};
22
constexpr
auto
sigs2 =
23
stdexec::completion_signatures<stdexec::set_error_t(std::exception_ptr), stdexec::set_value_t(
int
)>{};
24
constexpr
auto
sigs3 = stdexec::completion_signatures<
25
stdexec::set_error_t(std::exception_ptr),
26
stdexec::set_value_t(
int
),
27
stdexec::set_error_t(std::exception_ptr)
28
>{};
29
constexpr
auto
sigs4 = stdexec::completion_signatures<
30
stdexec::set_error_t(std::exception_ptr),
31
stdexec::set_value_t(
int
),
32
stdexec::set_stopped_t()
33
>{};
34
35
static_assert
(sigs1 != empty);
36
static_assert
(sigs1 == sigs2);
37
static_assert
(sigs1 == sigs3);
38
static_assert
(sigs1 != sigs4);
39
40
return
true
;
41
}
42
49
TEST(completion_signatures, operator_equal_checks_for_set_equality) {
50
static_assert
(
test_completion_signatures_operator_equal_checks_for_set_equality
());
51
}
52
53
}
// namespace Tests
stdexec.hpp
Tests
Definition
test_any_sender.cpp:39
Tests::test_completion_signatures_operator_equal_checks_for_set_equality
consteval bool test_completion_signatures_operator_equal_checks_for_set_equality()
Definition
test_completion_signatures.cpp:18
tests
stdexec
test_completion_signatures.cpp
Generated on
for kokkos-execution by
1.18.0