Avoid unused function warnings in compile fail tests

This avoids false positives when warnings-as-error is enabled
This commit is contained in:
Alexander Grund 2022-01-07 18:13:19 +01:00
parent f4c7401e2c
commit 2dede8303b
No known key found for this signature in database
GPG key ID: AA48A0760367A42B
7 changed files with 50 additions and 71 deletions

View file

@ -8,15 +8,12 @@
#include <turtle/mock.hpp>
namespace
MOCK_CLASS( my_class )
{
MOCK_CLASS( my_class )
{
MOCK_METHOD_EXT( my_method, 1, void( int ), my_method )
};
void test_case()
{
my_class c;
MOCK_EXPECT( c.my_method ).with( "42" );
}
MOCK_METHOD_EXT( my_method, 1, void( int ), my_method )
};
void test_case()
{
my_class c;
MOCK_EXPECT( c.my_method ).with( "42" );
}