Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for generateMockGetNsFunc (0.14 sec)

  1. cni/pkg/plugin/plugin_dryrun_test.go

    	return ns.path
    }
    
    func (*mockNetNs) Fd() uintptr {
    	return 0
    }
    
    func (*mockNetNs) Close() error {
    	return nil
    }
    
    type netNsFunc func(nspath string) (ns.NetNS, error)
    
    func generateMockGetNsFunc(netNs string) netNsFunc {
    	return func(nspath string) (ns.NetNS, error) {
    		return &mockNetNs{path: netNs}, nil
    	}
    }
    
    func buildDryrunConf() string {
    	return fmt.Sprintf(
    		mockConfTmpl,
    		"1.0.0",
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Aug 27 16:44:45 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top