mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
Temp (#123)
* Coverage * added fixes * removed spacing * removed junk * removed print * removed coverage * removed useless stuff * fix --------- Co-authored-by: Saikari <lin@sz.cn.eu.org>
This commit is contained in:
11
tests/general/unit_test_pe_pattern_scan_extra.cpp
Normal file
11
tests/general/unit_test_pe_pattern_scan_extra.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
// Tests for PePatternScanner basic behavior
|
||||
#include <gtest/gtest.h>
|
||||
#include <omath/utility/pe_pattern_scan.hpp>
|
||||
|
||||
using namespace omath;
|
||||
|
||||
TEST(unit_test_pe_pattern_scan_extra, MissingFileReturnsNull)
|
||||
{
|
||||
const auto res = PePatternScanner::scan_for_pattern_in_file("/non/existent/file.exe", "55 8B EC");
|
||||
EXPECT_FALSE(res.has_value());
|
||||
}
|
||||
Reference in New Issue
Block a user