- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Mock (0.71 sec)
-
cni/pkg/nodeagent/fakes_test.go
} func (f *fakeZtunnel) PodAdded(ctx context.Context, pod *corev1.Pod, netns Netns) error { f.addedPods.Add(1) return f.addError } func (f *fakeZtunnel) Close() error { return nil } // fakeNs is a mock struct for testing type fakeNs struct { closed *atomic.Bool fd uintptr inode uint64 } func newFakeNs(fd uintptr) *fakeNs { // the fake inode is the fd! magic.
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 3.9K bytes - Viewed (0)