mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added error analyser first draft
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@212 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
b5845cfdec
commit
78befdb9be
2 changed files with 26 additions and 0 deletions
|
|
@ -17,6 +17,10 @@
|
||||||
</build-test>
|
</build-test>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="analyser" description="run errors analyser">
|
||||||
|
<build-test name="errors" depends="boost"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="bench" description="build compilation benchmark">
|
<target name="bench" description="build compilation benchmark">
|
||||||
<build-app name="turtle_bench" mode="all">
|
<build-app name="turtle_bench" mode="all">
|
||||||
<includepath path="${applications.dir}/turtle_bench"/>
|
<includepath path="${applications.dir}/turtle_bench"/>
|
||||||
|
|
|
||||||
22
src/tests/errors_test/mismatch_type_in_returns_action.cpp
Normal file
22
src/tests/errors_test/mismatch_type_in_returns_action.cpp
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
//
|
||||||
|
// Copyright Mathieu Champlon 2011
|
||||||
|
//
|
||||||
|
// Distributed under the Boost Software License, Version 1.0. (See
|
||||||
|
// accompanying file LICENSE_1_0.txt or copy at
|
||||||
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
//
|
||||||
|
|
||||||
|
#include <turtle/mock.hpp>
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
MOCK_CLASS( cl )
|
||||||
|
{
|
||||||
|
MOCK_METHOD_EXT( m, 0, int(), m ) // add another test with void() and another with std::string()
|
||||||
|
};
|
||||||
|
void test_case()
|
||||||
|
{
|
||||||
|
cl c;
|
||||||
|
MOCK_EXPECT( c, m ).returns( "42" );
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue