MCPcopy Create free account
hub / github.com/UiPath/uipathcli / renderTick

Method renderTick

utils/visualization/progress_bar.go:63–71  ·  view source on GitHub ↗
(text string, percent float64, info string)

Source from the content-addressed store, hash-verified

61}
62
63func (b *ProgressBar) renderTick(text string, percent float64, info string) int {
64 bar := b.createBar(percent)
65 output := fmt.Sprintf("%s |%s|%s",
66 text,
67 bar,
68 info)
69 b.logger.LogError(output)
70 return utf8.RuneCountInString(output)
71}
72
73func (b *ProgressBar) renderProgress(text string, currentBytes int64, totalBytes int64, bytesPerSecond int64) int {
74 percent := math.Min(float64(currentBytes)/float64(totalBytes)*100.0, 100.0)

Callers 2

UpdateStepsMethod · 0.95
UpdatePercentageMethod · 0.95

Calls 2

createBarMethod · 0.95
LogErrorMethod · 0.65

Tested by

no test coverage detected