| 36 | } |
| 37 | |
| 38 | type fakeServer struct { |
| 39 | mock.Mock |
| 40 | testWG *WaitGroup // optional waitgroup, if code under test makes a number of async calls to fakeServer |
| 41 | } |
| 42 | |
| 43 | func (f *fakeServer) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error { |
| 44 | if f.testWG != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected