LeviLamina
Loading...
Searching...
No Matches
GameTestRegistry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace gametest { class BaseGameTestFunction; }
8// clang-format on
9
10namespace gametest {
11
12class GameTestRegistry {
13public:
14 // member variables
15 // NOLINTBEGIN
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 GameTestRegistry& operator=(GameTestRegistry const&);
27 GameTestRegistry(GameTestRegistry const&);
28 GameTestRegistry();
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCNAPI void clearAllTestMethods();
34
35 MCNAPI void generateTagsList();
36
37 MCNAPI ::std::function<void()> getBeforeBatchFunction(::std::string const& batchName);
38
39 MCNAPI ::std::shared_ptr<::gametest::BaseGameTestFunction> getTestFunction(::std::string const& testName);
40
41 MCNAPI bool registerAfterBatchFunction(::std::string const& batchName, ::std::function<void()> fn);
42
43 MCNAPI bool registerBeforeBatchFunction(::std::string const& batchName, ::std::function<void()> fn);
44
45 MCNAPI bool
46 registerTestMethod(::std::string const& className, ::std::shared_ptr<::gametest::BaseGameTestFunction> fn);
47 // NOLINTEND
48};
49
50} // namespace gametest
Definition BaseGameTestFunction.h:14
MCAPI bool registerAfterBatchFunction(::std::string const &batchName, ::std::function< void()> fn)
MCAPI ::std::function< void()> getBeforeBatchFunction(::std::string const &batchName)
MCAPI bool registerTestMethod(::std::string const &className, ::std::shared_ptr<::gametest::BaseGameTestFunction > fn)
MCAPI bool registerBeforeBatchFunction(::std::string const &batchName, ::std::function< void()> fn)
MCAPI ::std::shared_ptr<::gametest::BaseGameTestFunction > getTestFunction(::std::string const &testName)
MCAPI void clearAllTestMethods()
Definition Alias.h:14