MCPcopy
hub / github.com/kopia/kopia / Before

Method Before

internal/fault/fault.go:46–52  ·  view source on GitHub ↗

Before invokes the provided function but does not return an error.

(cb func())

Source from the content-addressed store, hash-verified

44
45// Before invokes the provided function but does not return an error.
46func (f *Fault) Before(cb func()) *Fault {
47 f.mu.Lock()
48 f.callback = cb
49 f.mu.Unlock()
50
51 return f
52}
53
54// Repeat causes the fault to repeat N times.
55func (f *Fault) Repeat(n int) *Fault {

Callers 15

runMethod · 0.45
getLogSessionsFunction · 0.45
listManifestItemsMethod · 0.45
migrateSingleSourceMethod · 0.45
displayCycleInfoMethod · 0.45
createSnapshotTimeFilterFunction · 0.45
LessMethod · 0.45
upcomingItemsMethod · 0.45

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65