mirror of
https://github.com/brazilofmux/tinymux
synced 2026-08-13 00:23:11 -04:00
Reorganize standalone test harnesses under tests/:
- tests/db/: SQLite/storage backend tests (moved from db/)
- Fix missing <ctime> include in sqlitedb.cpp
- Add stubs.cpp for attr_mod_count symbols
- Update Makefile paths for new location
- tests/libmux/: New unit test harness linking against libmux.so
- 29 tests covering mux_atol, mux_atof, mux_i64toa, safe buffer
writing, StringClone, mux_stricmp, mux_strupr/strlwr,
trim_spaces, mux_strncpy
- tests/color_ops/: Unchanged (already in tests/)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8 lines
342 B
C++
8 lines
342 B
C++
// stubs.cpp — Provide symbols required by sqlitedb.cpp that live in engine.so.
|
|
// The standalone test harness doesn't link the engine, so we stub these out.
|
|
|
|
#include <cstdint>
|
|
|
|
// JIT mod_count stubs — not exercised in standalone DB tests.
|
|
uint32_t attr_mod_count_get(int, int) { return 0; }
|
|
void attr_mod_count_invalidate_all() {}
|