mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Added Visual Studio project and fixed up some warnings showing in VS
This commit is contained in:
@@ -61,7 +61,7 @@ public:
|
||||
}
|
||||
|
||||
template<typename RhsT>
|
||||
MutableResultInfo& operator ||( const RhsT& rhs )
|
||||
MutableResultInfo& operator ||( const RhsT& )
|
||||
{
|
||||
m_expressionIncomplete = true;
|
||||
return *this;
|
||||
|
@@ -25,7 +25,7 @@ namespace Catch
|
||||
// -r --report <type>
|
||||
// -o --output filename to write to
|
||||
// -s --success report successful cases too
|
||||
class ArgParser
|
||||
class ArgParser : NonCopyable
|
||||
{
|
||||
enum Mode
|
||||
{
|
||||
|
@@ -17,4 +17,15 @@
|
||||
#define INTERNAL_CATCH_UNIQUE_NAME_LINE( name, line ) INTERNAL_CATCH_UNIQUE_NAME_LINE2( name, line )
|
||||
#define INTERNAL_CATCH_UNIQUE_NAME( name ) INTERNAL_CATCH_UNIQUE_NAME_LINE( name, __LINE__ )
|
||||
|
||||
namespace Catch
|
||||
{
|
||||
class NonCopyable
|
||||
{
|
||||
NonCopyable( const NonCopyable& );
|
||||
void operator = ( const NonCopyable& );
|
||||
protected:
|
||||
NonCopyable(){}
|
||||
};
|
||||
}
|
||||
|
||||
#endif // TWOBLUECUBES_CATCH_COMMON_H_INCLUDED
|
@@ -75,7 +75,7 @@ namespace Catch
|
||||
mutable std::ostream m_os;
|
||||
};
|
||||
|
||||
struct ITestReporter
|
||||
struct ITestReporter : NonCopyable
|
||||
{
|
||||
virtual ~ITestReporter(){}
|
||||
|
||||
|
@@ -95,7 +95,7 @@ namespace Catch
|
||||
{
|
||||
testInfo.invoke();
|
||||
}
|
||||
catch( TestFailureException& ex )
|
||||
catch( TestFailureException& )
|
||||
{
|
||||
// This just means the test was aborted due to failure
|
||||
}
|
||||
@@ -118,7 +118,7 @@ namespace Catch
|
||||
{
|
||||
return m_successes;
|
||||
}
|
||||
std:: size_t getFailures() const
|
||||
std:: size_t getFailureCount() const
|
||||
{
|
||||
return m_failures;
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ namespace Catch
|
||||
public:
|
||||
Section( const std::string& name, const std::string& description )
|
||||
{
|
||||
// !TBD notify the runner
|
||||
(name, description); // !TBD notify the runner
|
||||
}
|
||||
|
||||
operator bool()
|
||||
|
Reference in New Issue
Block a user