(req *RemoveRequest)
| 165 | } |
| 166 | |
| 167 | func (p *testPlugin) Remove(req *RemoveRequest) error { |
| 168 | p.remove++ |
| 169 | for i, v := range p.volumes { |
| 170 | if v == req.Name { |
| 171 | p.volumes = append(p.volumes[:i], p.volumes[i+1:]...) |
| 172 | return nil |
| 173 | } |
| 174 | } |
| 175 | return fmt.Errorf("no such volume") |
| 176 | } |
| 177 | |
| 178 | func (p *testPlugin) Path(req *PathRequest) (*PathResponse, error) { |
| 179 | p.path++ |
nothing calls this directly
no outgoing calls
no test coverage detected