// Author: cirakg & claude ai // Summary: Switch for the UI-test build: a frozen clock, a short auto-lock and a store reset to fake entries. // // Two versions of this module exist; each build keeps exactly one: // * (:no_uitest), in every normal build (debug, release, unit tests): // ON is false and nothing changes. // * (:uitest), only with uitest.jungle (`make screenshots`): the clock is // frozen at NOW, so codes and countdowns in screenshots never change; the // store is wiped and filled with fake entries at every start // (source/app/Fixtures.mc); auto-lock is short enough to test. // The constant-condition checks on ON are resolved by the compiler, so the // unused branch costs nothing. import Toybox.Lang; (:uitest) module TestMode { const ON = true; // 2027-01-15 08:00:26 UTC: 4 s left in a 30 s period, so the detail // screen shows the next code too. const NOW = 1800000026l; const AUTO_LOCK_MS = 10000; } (:no_uitest) module TestMode { const ON = false; const NOW = 0l; const AUTO_LOCK_MS = 0; }