MCPcopy Create free account
hub / github.com/ac3ss0r/obfusheader.h / const_encryption_test

Function const_encryption_test

tests/cpp_tests.cpp:43–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 EXPORT void const_encryption_test() {
44 // Const encryption tests
45 CSTD_ASSERT(OBF(123) == 123);
46 CSTD_ASSERT(OBF(9223372036854775807) == 9223372036854775807);
47 CSTD_ASSERT(OBF(0x123) == 0x123);
48 CSTD_ASSERT(OBF(true) == true);
49 CSTD_ASSERT(strcmp(OBF("test"), "test") == 0);
50 printf("char*: %s\n"
51 "int (dec): %d\n"
52 "long long: %llu\n"
53 "int (hex): 0x%x\n"
54 "boolean: %d\n",
55 OBF("test"), OBF(123),
56 OBF(9223372036854775807),
57 OBF(0x123), OBF(true));
58 }
59
60 EXPORT void call_hiding_test() {
61 int a = 0;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected