Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 517 for fakeVM (0.3 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/eventclock/fake.go

    // Sleep returns after the given duration has passed.
    // Sleep must only be invoked in a goroutine that is counted
    // in the Fake's associated GoRoutineCounter.
    // Unlike the base FakeClock's Sleep, this method does not itself advance the clock
    // but rather leaves that up to other actors (e.g., Run).
    func (fec *Fake) Sleep(duration time.Duration) {
    	doneCh := make(chan struct{})
    	fec.EventAfterDuration(func(time.Time) {
    		fec.clientWG.Add(1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  2. pkg/kube/multicluster/fake.go

    // limitations under the License.
    
    package multicluster
    
    import (
    	"istio.io/istio/pkg/cluster"
    	"istio.io/istio/pkg/kube"
    )
    
    type Fake struct {
    	handlers []handler
    }
    
    func (f *Fake) registerHandler(h handler) {
    	f.handlers = append(f.handlers, h)
    }
    
    func (f *Fake) Add(id cluster.ID, client kube.Client, stop chan struct{}) {
    	for _, handler := range f.handlers {
    		handler.clusterAdded(&Cluster{
    			ID:            id,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. src/runtime/libfuzzer.go

    	libfuzzerCallTraceIntCmp(&__sanitizer_cov_trace_const_cmp1, uintptr(arg0), uintptr(arg1), uintptr(fakePC))
    }
    
    //go:nosplit
    func libfuzzerTraceConstCmp2(arg0, arg1 uint16, fakePC uint) {
    	fakePC = fakePC % retSledSize
    	libfuzzerCallTraceIntCmp(&__sanitizer_cov_trace_const_cmp2, uintptr(arg0), uintptr(arg1), uintptr(fakePC))
    }
    
    //go:nosplit
    func libfuzzerTraceConstCmp4(arg0, arg1 uint32, fakePC uint) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 23 01:12:02 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  4. pkg/kubelet/container/testing/os.go

    // Hostname is a fake call that returns nil.
    func (f *FakeOS) Hostname() (name string, err error) {
    	return f.HostName, nil
    }
    
    // Chtimes is a fake call that returns nil.
    func (*FakeOS) Chtimes(path string, atime time.Time, mtime time.Time) error {
    	return nil
    }
    
    // Pipe is a fake call that returns nil.
    func (*FakeOS) Pipe() (r *os.File, w *os.File, err error) {
    	return nil, nil, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 13:37:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. pilot/test/xds/fake.go

    		objects = append(objects, o)
    	}
    	return objects, nil
    }
    
    // DisableAuthorizationForSecret makes the authorization check always pass. Should be used only for tests.
    func DisableAuthorizationForSecret(fake *fake.Clientset) {
    	fake.Fake.PrependReactor("create", "subjectaccessreviews", func(action k8stesting.Action) (bool, runtime.Object, error) {
    		return true, &authorizationv1.SubjectAccessReview{
    			Status: authorizationv1.SubjectAccessReviewStatus{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. security/pkg/server/ca/server_test.go

    			authenticators: nil,
    			code:           codes.Unauthenticated,
    			ca:             &mockca.FakeCA{},
    		},
    		"Unauthenticated request": {
    			authenticators: []security.Authenticator{&mockAuthenticator{
    				errMsg: "Not authorized",
    			}},
    			code: codes.Unauthenticated,
    			ca:   &mockca.FakeCA{},
    		},
    		"CA not ready": {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. pkg/proxy/ipvs/ipset/testing/fake.go

    	Version string
    	// The key of Sets map is the ip set name
    	Sets map[string]*ipset.IPSet
    	// The key of Entries map is the ip set name where the entries exists
    	Entries map[string]sets.String
    }
    
    // NewFake create a new fake ipset interface - it initialize the FakeIPSet.
    func NewFake(version string) *FakeIPSet {
    	return &FakeIPSet{
    		Version: version,
    		Sets:    make(map[string]*ipset.IPSet),
    		Entries: make(map[string]sets.String),
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. src/internal/fuzz/trace.go

    func libfuzzerTraceCmp1(arg0, arg1 uint8, fakePC uint)  {}
    func libfuzzerTraceCmp2(arg0, arg1 uint16, fakePC uint) {}
    func libfuzzerTraceCmp4(arg0, arg1 uint32, fakePC uint) {}
    func libfuzzerTraceCmp8(arg0, arg1 uint64, fakePC uint) {}
    
    func libfuzzerTraceConstCmp1(arg0, arg1 uint8, fakePC uint)  {}
    func libfuzzerTraceConstCmp2(arg0, arg1 uint16, fakePC uint) {}
    func libfuzzerTraceConstCmp4(arg0, arg1 uint32, fakePC uint) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 12 00:12:53 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/net_test.go

    		},
    		Spec: corev1.PodSpec{ServiceAccountName: "sa"},
    	}
    
    	// this is usually called after add. so manually add the pod uid for now
    	fakens := newFakeNs(123)
    	closed := fakens.closed
    	workload := WorkloadInfo{
    		Workload: podToWorkload(pod),
    		Netns:    fakens,
    	}
    	fixture.podNsMap.UpsertPodCacheWithNetns(string(pod.UID), workload)
    	err := netServer.RemovePodFromMesh(ctx, pod)
    	assert.NoError(t, err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  10. src/runtime/libfuzzer_amd64.s

    	MOVQ    $ret_sled<>(SB), BX
    	// Load the address of the i'th return instruction from the return sled.
    	// The index is given in the fakePC argument.
    	ADDQ    R8, BX
    	PUSHQ   BX
    	// Call the original function with the fakePC return address on the stack.
    	// Function arguments arg0 and arg1 are passed in the registers specified
    	// by the x64 calling convention.
    	JMP     AX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 04:57:07 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top