(ctx context.Context, nd *tree.Node)
| 127 | } |
| 128 | |
| 129 | func (f *countingFailNodeStore) Write(ctx context.Context, nd *tree.Node) (hash.Hash, error) { |
| 130 | if f.budget >= 0 { |
| 131 | f.writes++ |
| 132 | if f.writes > f.budget { |
| 133 | return hash.Hash{}, errors.New("induced node store failure") |
| 134 | } |
| 135 | } |
| 136 | return f.NodeStore.Write(ctx, nd) |
| 137 | } |
no outgoing calls
no test coverage detected