452e1628

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Use deep equality in tinybeans tests (#26)

Replace piecemeal field and slice assertions in the Tinybeans tests with
whole-value comparisons built around reflect.DeepEqual.

Use plain t.Errorf("<name>=%+v, want=%+v", ...) messages for mismatches
and reserve t.Fatalf for cases where the test cannot continue, such as an
unexpected parse error.

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/26
Co-authored-by: Michael Lynch <git@mtlynch.io>
Co-committed-by: Michael Lynch <git@mtlynch.io>

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 1s
Eval 1s 28s 28s 30s
Build 2s 34s 12s 15s
Test - - - -
Deploy - - - -
Suite 0s 1m04s 29s 30s

Timeline

0s10s20s30s