MCPcopy Index your code
hub / github.com/codehamr/codehamr / StatusSuffix

Method StatusSuffix

internal/cloud/cloud.go:91–96  ·  view source on GitHub ↗

StatusSuffix builds the " · 73% pass" status-bar tail; "" before the first snapshot. Rounded to nearest percent so it doesn't jitter on every token.

()

Source from the content-addressed store, hash-verified

89// StatusSuffix builds the " · 73% pass" status-bar tail; "" before the first
90// snapshot. Rounded to nearest percent so it doesn't jitter on every token.
91func (b BudgetStatus) StatusSuffix() string {
92 if !b.Set {
93 return ""
94 }
95 return fmt.Sprintf(" · %d%% pass", int(b.Remaining*100+0.5))
96}
97
98// ErrBudgetExhausted maps server 402: the pass is depleted and the user must
99// top up before any further request succeeds.

Callers 3

TestStatusSuffixFunction · 0.80
renderStatusBarMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestStatusSuffixFunction · 0.64