fix: Refactor test command handling with modular structure and common utilities

- Added new `test_common` module with helper functions for prompting and input handling.
- Introduced `test_common.cc` and `test_common.h` for shared functionality across test commands.
- Updated `z3ed.cmake` to include `test_common` in the build process.
- Refactored `test_commands.cc` to utilize new common utilities for improved readability and maintainability.
- Adjusted paths for source files in the build configuration to ensure proper linking.

This commit lays the groundwork for a more organized and modular approach to handling test commands, facilitating future enhancements and maintenance.
This commit is contained in:
scawful
2025-10-03 02:10:18 -04:00
parent ba12075ca9
commit 758b0c0a35
5 changed files with 206 additions and 2327 deletions

View File

@@ -10,8 +10,8 @@
#include "absl/strings/strip.h"
#ifdef YAZE_WITH_JSON
#include "incl/httplib.h"
#include "third_party/json/src/json.hpp"
#include "httplib.h"
#include "nlohmann/json.hpp"
#endif
namespace yaze {