Jamoma API  0.6.0.a19
TTApplication.test.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup modularLibrary
4  *
5  * @brief Unit test for the Modular #TTApplication class.
6  *
7  * @details Currently this test is just a stub
8  *
9  * @authors Théo de la Hogue
10  *
11  * @copyright Copyright © 2014 by Théo de la Hogue @n
12  * This code is licensed under the terms of the "New BSD License" @n
13  * http://creativecommons.org/licenses/BSD/
14  */
15 
16 #include "TTApplication.h"
17 
18 TTErr TTApplication::test(TTValue& returnedTestInfo)
19 {
20  int errorCount = 0;
21  int testAssertionCount = 0;
22 
23  // do tests here !
24  TTTestAssertion("TTApplication: Test passes because it is a fake test",
25  YES,
26  testAssertionCount,
27  errorCount);
28 
29  // Wrap up the test results to pass back to whoever called this test
30  return TTTestFinish(testAssertionCount, errorCount, returnedTestInfo);
31 }
32 
virtual TTErr test(TTValue &returnedTestInfo)
Default (empty) template for unit tests.
Handles application namespace using a TTNodeDirectory and two tables to convert any TTName into a spe...
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34