-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathTestMap.h
More file actions
30 lines (21 loc) · 860 Bytes
/
TestMap.h
File metadata and controls
30 lines (21 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Test Map
*
* From: https://github.com/PokemonAutomation/
*
*
*/
#ifndef PokemonAutomation_Tests_TestMap_H
#define PokemonAutomation_Tests_TestMap_H
#include <string>
#include <functional>
namespace PokemonAutomation{
// For each test object, the command line test framework calls its specific
// TestFunction with the string parameter as each test file.
// TestFunction returns 0 if the test succeeds, > 0 if fails, < 0 if the test file is skipped.
using TestFunction = std::function<int(const std::string& test_file_path)>;
// Return the test function given test space and test object name.
// Return nullptr if it cannot be found.
// See CommandLineTests.h for details on test space and test object.
TestFunction find_test_function(const std::string& test_space, const std::string& test_obj_name);
}
#endif