MCPcopy
hub / github.com/etcd-io/bbolt / Flakey

Interface Flakey

tests/dmflakey/dmflakey.go:59–77  ·  tests/dmflakey/dmflakey.go::Flakey

Flakey is to inject failure into device.

Source from the content-addressed store, hash-verified

57
58// Flakey is to inject failure into device.
59type Flakey interface {
60 // DevicePath returns the flakey device path.
61 DevicePath() string
62
63 // Filesystem returns filesystem's type.
64 Filesystem() FSType
65
66 // AllowWrites allows write I/O.
67 AllowWrites(opts ...FeatOpt) error
68
69 // DropWrites drops all write I/O silently.
70 DropWrites(opts ...FeatOpt) error
71
72 // ErrorWrites drops all write I/O and returns error.
73 ErrorWrites(opts ...FeatOpt) error
74
75 // Teardown releases the flakey device.
76 Teardown() error
77}
78
79// FSType represents the filesystem name.
80type FSType string

Callers 15

TestBasicFunction · 0.65
TestDropWritesExt4Function · 0.65
TestErrorWritesExt4Function · 0.65
initFlakeyDeviceFunction · 0.65
PowerFailureMethod · 0.65
PowerFailureMethod · 0.65
TestDropWritesExt4Function · 0.65
TestErrorWritesExt4Function · 0.65
PowerFailureMethod · 0.65
TestDropWritesExt4Function · 0.65
PowerFailureMethod · 0.65
TestErrorWritesExt4Function · 0.65

Implementers 1

flakeytests/dmflakey/dmflakey.go

Calls

no outgoing calls

Tested by

no test coverage detected