Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.45
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby27 /
src /
passenger-release-6.1.2 /
doc /
Delete
Unzip
Name
Size
Permission
Date
Action
DesignAspects
[ DIR ]
drwxr-xr-x
2026-05-26 22:42
images
[ DIR ]
drwxr-xr-x
2026-05-26 22:42
templates
[ DIR ]
drwxr-xr-x
2026-05-26 22:42
AiInstructions.md
6.63
KB
-rw-r--r--
2026-01-28 03:20
CodingTipsAndPitfalls.md
2.93
KB
-rw-r--r--
2026-01-28 03:20
CxxMockingStrategy.md
982
B
-rw-r--r--
2026-01-28 03:20
CxxTestingGuide.md
2.97
KB
-rw-r--r--
2026-01-28 03:20
DebuggingAndStressTesting.md
4.95
KB
-rw-r--r--
2026-01-28 03:20
DeveloperQuickstart.md
3.5
KB
-rw-r--r--
2026-01-28 03:20
Packaging.md
12.53
KB
-rw-r--r--
2026-01-28 03:20
TempFileHandling.md
797
B
-rw-r--r--
2026-01-28 03:20
Save
Rename
# C++ mocking strategy - We don't use any mocking library. - We implement mocking by splitting mockable code to protected virtual methods. Inside test suites, we create a subclass in which we override the methods we want to mock. - Best practices for the override: - Opt-in for mocking on a per-test basis. - When not opted-in, call the parent class's method instead of duplicating its code. Example: ```c++ class Greeter { protected: virtual const char *name() { return "john"; } public: void greet() { std::cout << "hello " << name() << std::endl; } }; // In the test suite: class TestGreeter: public Greeter { protected: virtual const char *name() override { if (mockName != nullptr) { return mockName; } else { return Greeter::name(); } } public: const char *mockName; // Set to non-nullptr to mock the name TestGreeter() : mockName(nullptr) { } }; ```