MCPcopy
hub / github.com/kopia/kopia / spinnerCharacter

Method spinnerCharacter

cli/cli_progress.go:205–215  ·  view source on GitHub ↗

+checklocks:p.outputMutex

()

Source from the content-addressed store, hash-verified

203
204// +checklocks:p.outputMutex
205func (p *cliProgress) spinnerCharacter() string {
206 if p.uploadFinished.Load() {
207 return "*"
208 }
209
210 x := p.spinPhase % len(spinner)
211 s := spinner[x : x+1]
212 p.spinPhase = (p.spinPhase + 1) % len(spinner)
213
214 return s
215}
216
217func (p *cliProgress) StartShared() {
218 *p = cliProgress{

Callers 1

outputMethod · 0.95

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected