MCPcopy Create free account
hub / github.com/DFIR-ORC/dfir-orc / TEST_METHOD

Function TEST_METHOD

tests/OrcLibTest/running_code_test.cpp:29–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 TEST_METHOD_CLEANUP(Finalize) {}
28
29 TEST_METHOD(RunningCodeBasicTest)
30 {
31 Log::Info("Entering RunningCode basic test");
32
33 RunningCode rc;
34
35 Assert::IsTrue(SUCCEEDED(rc.EnumRunningCode()));
36
37 Modules mods;
38 Assert::IsTrue(SUCCEEDED(rc.GetUniqueModules(mods)));
39
40 for (const auto& mod : mods)
41 {
42 Log::Info(L"Module '{}' in process", mod.strModule);
43
44 std::wstringstream stream;
45
46 for (const auto pid : mod.Pids)
47 {
48 stream << pid << L" ";
49 }
50 Log::Info(L"\t{}", stream.str());
51 }
52 }
53};
54} // namespace Orc::Test

Callers

nothing calls this directly

Calls 3

EnumRunningCodeMethod · 0.80
GetUniqueModulesMethod · 0.80
InfoFunction · 0.50

Tested by

no test coverage detected