mirror of
https://github.com/Naios/continuable.git
synced 2026-02-12 21:29:48 +08:00
Disable the cxx_function tests for now
This commit is contained in:
parent
a2f9007cf6
commit
6e04f0d389
@ -24,7 +24,7 @@
|
|||||||
#ifndef TEST_CONTINUABLE_HPP__
|
#ifndef TEST_CONTINUABLE_HPP__
|
||||||
#define TEST_CONTINUABLE_HPP__
|
#define TEST_CONTINUABLE_HPP__
|
||||||
|
|
||||||
#if UNIT_TEST_STEP >= 3
|
#if UNIT_TEST_STEP == 4
|
||||||
#define THIRD_PARTY_TESTS
|
#define THIRD_PARTY_TESTS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -40,18 +40,12 @@
|
|||||||
#include "continuable/continuable-testing.hpp"
|
#include "continuable/continuable-testing.hpp"
|
||||||
#include "continuable/continuable.hpp"
|
#include "continuable/continuable.hpp"
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
#ifdef THIRD_PARTY_TESTS
|
#ifdef THIRD_PARTY_TESTS
|
||||||
|
|
||||||
#include "cxx_function/cxx_function.hpp"
|
#include "cxx_function/cxx_function.hpp"
|
||||||
|
|
||||||
template <typename... Args>
|
|
||||||
using std_trait_of =
|
|
||||||
cti::continuable_trait<std::function, std::function, Args...>;
|
|
||||||
|
|
||||||
template <typename... Args>
|
|
||||||
using std_continuable = typename std_trait_of<Args...>::continuable;
|
|
||||||
|
|
||||||
template <typename T> using cxx_function_fn = cxx_function::function<T>;
|
template <typename T> using cxx_function_fn = cxx_function::function<T>;
|
||||||
|
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
@ -74,6 +68,13 @@ using cxx_unique_continuable =
|
|||||||
typename unique_cxx_trait_of<Args...>::continuable;
|
typename unique_cxx_trait_of<Args...>::continuable;
|
||||||
#endif // THIRD_PARTY_TESTS
|
#endif // THIRD_PARTY_TESTS
|
||||||
|
|
||||||
|
template <typename... Args>
|
||||||
|
using std_trait_of =
|
||||||
|
cti::continuable_trait<std::function, std::function, Args...>;
|
||||||
|
|
||||||
|
template <typename... Args>
|
||||||
|
using std_continuable = typename std_trait_of<Args...>::continuable;
|
||||||
|
|
||||||
using cti::detail::util::identity;
|
using cti::detail::util::identity;
|
||||||
|
|
||||||
inline auto to_hint(identity<> /*hint*/) { return identity<void>{}; }
|
inline auto to_hint(identity<> /*hint*/) { return identity<void>{}; }
|
||||||
@ -197,16 +198,15 @@ using single_types = ::testing::Types<
|
|||||||
provide_continuation_and_right<provide_unique>,
|
provide_continuation_and_right<provide_unique>,
|
||||||
provide_continuation_and_left<provide_erasure<cti::continuable>>
|
provide_continuation_and_left<provide_erasure<cti::continuable>>
|
||||||
#elif UNIT_TEST_STEP == 2
|
#elif UNIT_TEST_STEP == 2
|
||||||
provide_continuation_and_left<provide_erasure<cti::unique_continuable>>,
|
provide_continuation_and_left<provide_erasure<cti::unique_continuable>>
|
||||||
provide_continuation_seq_right<provide_unique>
|
|
||||||
#elif UNIT_TEST_STEP == 3
|
#elif UNIT_TEST_STEP == 3
|
||||||
#define NO_ERASURE_TESTS
|
provide_continuation_seq_right<provide_unique>
|
||||||
provide_erasure<cxx_unique_continuable>
|
|
||||||
#elif UNIT_TEST_STEP == 4
|
#elif UNIT_TEST_STEP == 4
|
||||||
#define NO_ERASURE_TESTS
|
#define NO_ERASURE_TESTS
|
||||||
#define NO_FUTURE_TESTS
|
#define NO_FUTURE_TESTS
|
||||||
provide_erasure<std_continuable>,
|
provide_erasure<std_continuable>
|
||||||
provide_erasure<cxx_continuable>
|
// provide_erasure<cxx_continuable>,
|
||||||
|
// provide_erasure<cxx_unique_continuable>
|
||||||
#endif
|
#endif
|
||||||
>;
|
>;
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user