746d38a6

By: Michael Lynch <git@mtlynch.io>

Simplify login_tokens_test.go by using concrete sqlite.Store type

Replace verbose inline interface declarations with sqlite.Store in setup
functions and table-driven test fields. The test already depends on
test_sqlite.New() which returns sqlite.Store, so the anonymous
interfaces added no value and repeated the InsertUser/InsertLoginToken
signatures four times.

Also reuse insertTestUser helper in TestConsumeLoginToken_AlreadyUsed
and TestReadUserByEmail, which previously inlined the same InsertUser
call.

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 1s
Eval 1s 1m01s 1m01s 1m03s
Build 3s 7m02s 1m09s 1m13s
Test - - - -
Deploy - - - -
Suite 0s 8m05s 1m13s 1m13s

Timeline

0s10s20s30s40s50s1m1m10s