Prepare the express table
The checkout’s shipping-rate helper reads built-in rates and prints standard or express quotes in cents. It must use ready configuration without repeating derived-table setup for each quote. Inputs are a reduced, single-threaded process: all zone additions and overrides precede every quote, and configuration stays fixed after quoting begins. The supplied rates scale to whole cents; currency rounding is outside this startup probe. The build counter observes table construction calls; it measures no elapsed time.
What needs to change
Make the startup declarations prepare a correct express table.
Reproduce
- Run the sample with go run: a standard and an express quote in zone A. Compare both lines with the expected stdout.
Acceptance criteria
Your review marks · Saved in this browser. Test acceptance is tracked separately.
Notes
percentFrom, scaleAll and buildRates are supplied. main reads stdin after package initialization has finished.