PFASST++
concepts.hpp
Go to the documentation of this file.
1 #ifndef _TESTS__FIXTURES__CONCEPTS_HPP_
2 #define _TESTS__FIXTURES__CONCEPTS_HPP_
3 
4 #include <type_traits>
5 
6 #include <gtest/gtest.h>
7 #include <gmock/gmock.h>
8 
9 template<typename T>
11  : public ::testing::Test
12 {};
13 
15 
16 TYPED_TEST_P(ConceptsTest, Constructors)
17 {
18  EXPECT_TRUE(is_default_constructible<TypeParam>::value);
19  EXPECT_TRUE(is_destructible<TypeParam>::value);
20  EXPECT_TRUE(is_copy_constructible<TypeParam>::value);
21  EXPECT_TRUE(is_move_constructible<TypeParam>::value);
22 }
23 
25 {
26  EXPECT_TRUE(is_copy_assignable<TypeParam>::value);
27  EXPECT_TRUE(is_move_assignable<TypeParam>::value);
28 }
29 
31  Constructors, Assignments);
32 
33 #endif // _TESTS__FIXTURES__CONCEPTS_HPP_
TYPED_TEST_CASE_P(ConceptsTest)
REGISTER_TYPED_TEST_CASE_P(ConceptsTest, Constructors, Assignments)
TYPED_TEST_P(ConceptsTest, Constructors)
Definition: concepts.hpp:16