mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Format code using Clang-Format 10 and enforce via CI
Makes the format of the code base uniform.
This commit is contained in:
parent
b5bb500bd2
commit
ee72e8b9d8
97 changed files with 11189 additions and 10842 deletions
|
|
@ -10,18 +10,17 @@
|
|||
#include <boost/test/unit_test.hpp>
|
||||
#include <type_traits>
|
||||
|
||||
namespace
|
||||
namespace {
|
||||
struct base
|
||||
{
|
||||
struct base
|
||||
{
|
||||
void method_1();
|
||||
float method_2( int ) const;
|
||||
};
|
||||
typedef base base_type;
|
||||
}
|
||||
void method_1();
|
||||
float method_2(int) const;
|
||||
};
|
||||
typedef base base_type;
|
||||
} // namespace
|
||||
|
||||
BOOST_AUTO_TEST_CASE( mock_signature_generates_signature )
|
||||
BOOST_AUTO_TEST_CASE(mock_signature_generates_signature)
|
||||
{
|
||||
static_assert( std::is_same< void(), MOCK_SIGNATURE(method_1) >::value, "!");
|
||||
static_assert( std::is_same< float( int ), MOCK_SIGNATURE(method_2) >::value, "!");
|
||||
static_assert(std::is_same<void(), MOCK_SIGNATURE(method_1)>::value, "!");
|
||||
static_assert(std::is_same<float(int), MOCK_SIGNATURE(method_2)>::value, "!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue