![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
Functions | |
| bool | WildcardMatch (const char *pattern, const char *text) |
| Matches text against a pattern where '*' matches any run of characters. | |
| int | RunChild (const std::vector< HookTestCase > &cases) |
| Child side: loads the hook DLL from bin/<config>, one directory above the tests folder, then runs every case, announcing each with a marker message. | |
| bool | CaptureChild (const char *exePath, size_t caseCount, std::vector< std::vector< std::string > > &messages) |
| Parent side: runs the child under a debug loop and returns the hook messages it emitted, grouped by case. Returns false if the child could not be run or did not exit cleanly. | |
Variables | |
| constexpr const char * | kCaseMarker = "@@PANO_CASE " |
| constexpr const char * | kEndMarker = "@@PANO_END" |
| constexpr const char * | kMessagePrefix = "[Panoptes] " |
|
inline |
Parent side: runs the child under a debug loop and returns the hook messages it emitted, grouped by case. Returns false if the child could not be run or did not exit cleanly.
Definition at line 164 of file hook_test_harness.hpp.
References kCaseMarker, kEndMarker, kMessagePrefix, and MAX_PATH.
Referenced by RunHookTests().
|
inline |
Child side: loads the hook DLL from bin/<config>, one directory above the tests folder, then runs every case, announcing each with a marker message.
Definition at line 129 of file hook_test_harness.hpp.
References HOOK_DLL_NAME, kCaseMarker, kEndMarker, MAX_PATH, and HookTestContext::Start().
Referenced by RunHookTests().
|
inline |
Matches text against a pattern where '*' matches any run of characters.
Definition at line 110 of file hook_test_harness.hpp.
References WildcardMatch().
Referenced by WildcardMatch().
|
constexpr |
Definition at line 105 of file hook_test_harness.hpp.
Referenced by CaptureChild(), and RunChild().
|
constexpr |
Definition at line 106 of file hook_test_harness.hpp.
Referenced by CaptureChild(), and RunChild().
|
constexpr |
Definition at line 107 of file hook_test_harness.hpp.
Referenced by CaptureChild().