📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: CxxTestingGuide.md
# C++ testing guide C++ tests use a modified version of the [Tut test framework](https://mrzechonek.github.io/tut-framework/). Test files are placed in test/cxx/SomethingTest.cpp. ## Test suite example ```c++ #include <TestSupport.h> // Always include this #include <Something.h> // The class to test // Always use these namespaces using namespace std; using namespace boost; using namespace Passenger; namespace tut { // Each test suite has a corresponding context struct, created and // deleted for every test case. You can put test case-local state here. struct SomethingTest: public TestBase { Something something; }; TEST_METHOD(1) { set_test_name("Description for test 1"); // Test logic here. // `this` is a SomethingTest instance. ensure_equals("Description for assertion 1", 1, something.foo()); ensure_equals("Description for assertion 2", 2, something.bar()); } TEST_METHOD(2) { set_test_name("Description for test 2"); // Test logic here. // `this` is a SomethingTest instance. } } ``` ## Available assertions - `ensure([description,] bool)` — Asserts argument is true. - `ensure_not([description,] bool)` - `ensure_equals([description,] actual, expected)` — Asserts `actual == expected`. - `ensure_not_equals([description,] actual, expected)` - `ensure_gt(description, a, b)` — Asserts `a > b`. - `ensure_distance([description,] a, b, d)` — Asserts the distance between `a` and `b` is <= `d`. - `fail(description)` — Fails the test case. ### Special assertions for multithreaded code - `EVENTUALLY(deadlineSeconds, code)` — Asserts that "something eventually happens". Runs `code` in a loop, sleeping for 10 msec each time, until code set `result = true` or timeout. Example: ```c++ EVENTUALLY(5, result = fileExists("foo.txt"); ); ``` Notes: - `code` is in a new lexical context, so defining variables there is fine. - Since EVENTUALLY is for multithreaded use cases, remember to synchronize access to shared state. - `EVENTUALLY2(deadlineMsec, sleeptimeMsec, code)` — Same as EVENTUALLY but with finer timing customization. - `SHOULD_NEVER_HAPPEN(deadlineMsec, code)` — Asserts that "something should never happen". Runs `code` in a loop for `deadlineMsec`. If `code` sets `result = true`, the test fails. Example: ```c++ SHOULD_NEVER_HAPPEN(1000, result = checkSocketDisconnected(); ); ``` The notes for `EVENTUALLY()` also apply here. ## Mocking See [C++ mocking strategy](CxxMockingStrategy.md). ## Running tests Prerequisite: ensure `test/config.json` exists. Refer to its `.example` file. ```bash # Run all test suites rake test:cxx GROUPS=SomethingTest # Run specific test suites rake test:cxx GROUPS=SomethingTest,AnotherTest # Run specific tests by number rake test:cxx GROUPS=SomethingTest:1,3 # Attach to GDB or LLDB rake test:cxx GROUPS=SomethingTest GDB=1 rake test:cxx GROUPS=SomethingTest LLDB=1 ```
Save