MCPcopy
hub / github.com/docker/docker-agent / ExportedBackoffDelay

Function ExportedBackoffDelay

pkg/tools/lifecycle/export_test.go:7–9  ·  view source on GitHub ↗

ExportedBackoffDelay exposes Backoff.delay for tests in the _test package.

(b Backoff, attempt int, randFloat func() float64)

Source from the content-addressed store, hash-verified

5// ExportedBackoffDelay exposes Backoff.delay for tests in the _test
6// package.
7func ExportedBackoffDelay(b Backoff, attempt int, randFloat func() float64) time.Duration {
8 return b.delay(attempt, randFloat)
9}

Callers 2

TestBackoff_DefaultsFunction · 0.92
TestBackoff_JitterFunction · 0.92

Calls 1

delayMethod · 0.80

Tested by

no test coverage detected