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()> getAfterBatchFunction(::std::string const& batchName);
38
39 MCNAPI ::std::vector<::std::shared_ptr<::gametest::BaseGameTestFunction>> getAllTestFunctions();
40
41 MCNAPI ::std::vector<::std::string> const& getAllTestTags() const;
42
43 MCNAPI ::std::function<void()> getBeforeBatchFunction(::std::string const& batchName);
44
45 MCNAPI ::std::shared_ptr<::gametest::BaseGameTestFunction> getTestFunction(::std::string const& testName);
46
47 MCNAPI ::std::vector<::std::shared_ptr<::gametest::BaseGameTestFunction>>
48 getTestFunctionsWithTag(::std::string const& tag);
49
50#ifdef LL_PLAT_S
51 MCNAPI bool isReady() const;
52#endif
53
54 MCNAPI bool isTestTag(::std::string const& tag) const;
55
56 MCNAPI bool registerAfterBatchFunction(::std::string const& batchName, ::std::function<void()> fn);
57
58 MCNAPI bool registerBeforeBatchFunction(::std::string const& batchName, ::std::function<void()> fn);
59
60 MCNAPI bool
61 registerTestMethod(::std::string const& className, ::std::shared_ptr<::gametest::BaseGameTestFunction> fn);
62
63 MCNAPI void setReady();
64
66 // NOLINTEND
67
68public:
69 // destructor thunk
70 // NOLINTBEGIN
71 MCNAPI void $dtor();
72 // NOLINTEND
73};
74
75} // namespace gametest
Definition BaseGameTestFunction.h:16
MCAPI ::std::vector<::std::string > const & getAllTestTags() const
MCAPI bool registerAfterBatchFunction(::std::string const &batchName, ::std::function< void()> fn)
MCAPI bool isTestTag(::std::string const &tag) const
MCAPI ::std::function< void()> getBeforeBatchFunction(::std::string const &batchName)
MCAPI ::std::vector<::std::shared_ptr<::gametest::BaseGameTestFunction > > getAllTestFunctions()
MCAPI bool registerTestMethod(::std::string const &className, ::std::shared_ptr<::gametest::BaseGameTestFunction > fn)
MCAPI ::std::vector<::std::shared_ptr<::gametest::BaseGameTestFunction > > getTestFunctionsWithTag(::std::string const &tag)
MCAPI bool registerBeforeBatchFunction(::std::string const &batchName, ::std::function< void()> fn)
MCAPI ::std::function< void()> getAfterBatchFunction(::std::string const &batchName)
MCAPI ::std::shared_ptr<::gametest::BaseGameTestFunction > getTestFunction(::std::string const &testName)
MCAPI void clearAllTestMethods()
Definition Alias.h:14