blob: c7d94240f12a8465a0bae92d207cae273ec18a7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/**
** \file testsuite/testsuite-generator.hh
** \brief Declaration of testsuite::TestsuiteGenerator.
*/
#pragma once
#include <ast/chunk-interface.hh>
namespace testsuite
{
/**
* Generate a new AST providing a _main function. This main function
* calls each provided function within the context of a testsuite runtime.
*
* @param tests a vector referencing every test to run within the testsuite
* @return a new AST which can be appened to the main program
*/
ast::ChunkInterface*
generate_testsuite_runtime(const std::vector<const ast::FunctionDec*>& tests);
} // namespace testsuite
|