| 16 | } |
| 17 | |
| 18 | type fakeWGClient struct { |
| 19 | configureDeviceFn func(name string, cfg wgtypes.Config) error |
| 20 | deviceFn func(name string) (*wgtypes.Device, error) |
| 21 | closeFn func() error |
| 22 | } |
| 23 | |
| 24 | func (c *fakeWGClient) ConfigureDevice(name string, cfg wgtypes.Config) error { |
| 25 | if c.configureDeviceFn == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected