Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 144 for fakePC (0.13 sec)

  1. src/cmd/compile/internal/walk/compare.go

    	"cmd/compile/internal/ssagen"
    	"cmd/compile/internal/typecheck"
    	"cmd/compile/internal/types"
    )
    
    func fakePC(n ir.Node) ir.Node {
    	// In order to get deterministic IDs, we include the package path, absolute filename, line number, column number
    	// in the calculation of the fakePC for the IR node.
    	hash := fnv.New32()
    	// We ignore the errors here because the `io.Writer` in the `hash.Hash` interface never returns an error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/expr.go

    			}
    			var hookArgs []ir.Node
    			for _, arg := range args {
    				hookArgs = append(hookArgs, tracecmpArg(arg, types.Types[hook.paramType], init))
    			}
    			hookArgs = append(hookArgs, fakePC(n))
    			init.Append(mkcall(hook.runtimeFunc, nil, init, hookArgs...))
    		}
    	}
    }
    
    // walkDivMod walks an ODIV or OMOD node.
    func walkDivMod(n *ir.BinaryExpr, init *ir.Nodes) ir.Node {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  3. src/database/sql/fakedb_test.go

    func (d *fakeDriver) getDB(name string) *fakeDB {
    	d.mu.Lock()
    	defer d.mu.Unlock()
    	if d.dbs == nil {
    		d.dbs = make(map[string]*fakeDB)
    	}
    	db, ok := d.dbs[name]
    	if !ok {
    		db = &fakeDB{name: name}
    		d.dbs[name] = db
    	}
    	return db
    }
    
    func (db *fakeDB) wipe() {
    	db.mu.Lock()
    	defer db.mu.Unlock()
    	db.tables = nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        class FakeOp implements Runnable {
          final int op;
    
          FakeOp(int op) {
            this.op = op;
          }
    
          @Override
          public void run() {
            callOrder.add(op);
          }
        }
    
        e.execute(new FakeOp(0));
        e.execute(new FakeOp(1));
        e.execute(new FakeOp(2));
        fakePool.runAll();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_sandbox_test.go

    func TestCreatePodSandbox(t *testing.T) {
    	ctx := context.Background()
    	fakeRuntime, _, m, err := createTestRuntimeManager()
    	require.NoError(t, err)
    	pod := newTestPod()
    
    	fakeOS := m.osInterface.(*containertest.FakeOS)
    	fakeOS.MkdirAllFn = func(path string, perm os.FileMode) error {
    		// Check pod logs root directory is created.
    		assert.Equal(t, filepath.Join(testPodLogsDirectory, pod.Namespace+"_"+pod.Name+"_12345678"), path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/fake.go

    		ServiceEntryRegistry: se,
    	}
    	if !opts.SkipRun {
    		fake.Run()
    		if err := env.InitNetworksManager(xdsUpdater); err != nil {
    			t.Fatal(err)
    		}
    		if err := env.PushContext().InitContext(env, nil, nil); err != nil {
    			t.Fatalf("Failed to initialize push context: %v", err)
    		}
    	}
    	return fake
    }
    
    func (f *ConfigGenTest) Run() {
    	go f.Registry.Run(f.stop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_gc_test.go

    	err = m.containerGC.evictPodLogsDirectories(ctx, true)
    	assert.NoError(t, err)
    	assert.Equal(t, removed, fakeOS.Removes)
    
    	// allSourcesReady == false, pod log directories should not be removed.
    	fakeOS.Removes = []string{}
    	err = m.containerGC.evictPodLogsDirectories(ctx, false)
    	assert.NoError(t, err)
    	assert.Empty(t, fakeOS.Removes)
    }
    
    func TestUnknownStateContainerGC(t *testing.T) {
    	ctx := context.Background()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top