0a797261

By: Michael Lynch <git@mtlynch.io>

Make login handler tests table driven by token store state

Add used-state to LoginEntry so tests can describe submitted login tokens against the tokens present in the store. This keeps login handler cases legible from the table rows while preserving the routed HTTP request path.

Inject the server clock through handlers.New so tests use a fixed time for expiration behavior.
Codeberg

Suite timing

Time to Start Worker time Duration Time to finish
Config 4s 1s 1s 6s
Eval - - - -
Build 30s 8m27s - -
Test - - - -
Deploy - - - -
Suite 4s 8m28s - -