MCPcopy Create free account
hub / github.com/codehamr/codehamr / TestStatusBarOmitsBudgetWithoutHeaders

Function TestStatusBarOmitsBudgetWithoutHeaders

internal/tui/tui_test.go:1367–1376  ·  view source on GitHub ↗

TestStatusBarOmitsBudgetWithoutHeaders: endpoint sends no budget header, no pass segment appears.

(t *testing.T)

Source from the content-addressed store, hash-verified

1365 {0, "0 tok"},
1366 {1, "1 tok"},
1367 {900, "900 tok"},
1368 {999, "999 tok"},
1369 {1000, "1.0k tok"},
1370 {1200, "1.2k tok"},
1371 {1900, "1.9k tok"}, // the pair the user flagged: must stay constant width
1372 {2000, "2.0k tok"}, // not "2k tok"
1373 {9999, "10.0k tok"},
1374 {10_000, "10.0k tok"},
1375 {42_000, "42.0k tok"},
1376 {999_999, "1000.0k tok"},
1377 {1_000_000, "1.0M tok"},
1378 {1_500_000, "1.5M tok"},
1379 {12_345_678, "12.3M tok"},

Callers

nothing calls this directly

Calls 2

runTurnFunction · 0.85
ViewMethod · 0.45

Tested by

no test coverage detected