MCPcopy Create free account
hub / github.com/PasarGuard/node / fakeWGClient

Struct fakeWGClient

backend/wireguard/manager_test.go:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18type 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
24func (c *fakeWGClient) ConfigureDevice(name string, cfg wgtypes.Config) error {
25 if c.configureDeviceFn == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected