MCPcopy Create free account
hub / github.com/evcc-io/evcc / NextStep

Method NextStep

core/progress.go:15–26  ·  view source on GitHub ↗
(value float64)

Source from the content-addressed store, hash-verified

13}
14
15func (p *Progress) NextStep(value float64) bool {
16 // test guard
17 if p != nil && value >= p.current {
18 for p.current <= value {
19 p.current += p.step
20 }
21
22 return true
23 }
24
25 return false
26}
27
28func (p *Progress) Reset() {
29 // test guard

Callers 2

TestProgressFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestProgressFunction · 0.76