Files
omath/tests/general/unit_test_pe_pattern_scan_extra.cpp
Orange++ 897484bea1 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>
2025-12-23 02:47:12 +03:00

12 lines
344 B
C++

// 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());
}