tinymux/tests/db/stubs.cpp
Stephen Dennis 977c4087b6 Move db/ to tests/db/, add tests/libmux/ unit test harness
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>
2026-04-01 20:08:41 -06:00

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() {}