Commit Graph

1 Commits (edd36034e6589a13d3df801695e76c93166791b9)

Author SHA1 Message Date
Vernon Keenan 36d068664d Add table-driven unit tests for app/service-helpers.go pure helpers
GetFieldsAndValues, SqlDateToString, ParseDateTime, and IsZero had zero
test coverage even though they're pure, hermetic logic with several
non-obvious behaviors (e.g. strings always count as "non-zero", arrays
are compared by length only, and the dateTimeFormat's "-0800" suffix is
a Go reference-time artifact that behaves as a literal string rather
than a real timezone offset). Locking these in with tests now, ahead of
any future refactor of this file, so behavior changes are caught
instead of silently shipped.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 06:07:44 +00:00