Flakey is to inject failure into device.
| 57 | |
| 58 | // Flakey is to inject failure into device. |
| 59 | type 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. |
| 80 | type FSType string |
no outgoing calls
no test coverage detected