Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 414 for fakePC (0.1 sec)

  1. pkg/kubelet/stats/host_stats_provider_fake.go

    	osInterface kubecontainer.OSInterface
    }
    
    // NewFakeHostStatsProvider provides a way to test with fake host statistics
    func NewFakeHostStatsProvider() HostStatsProvider {
    	return &fakeHostStatsProvider{
    		osInterface: &kubecontainertest.FakeOS{},
    	}
    }
    
    // NewFakeHostStatsProviderWithData provides a way to test with fake host statistics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:57:17 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/apiclient/dryrunclient.go

    	fullReactorChain := append(opts.PrependReactors, defaultReactorChain...)
    	fullReactorChain = append(fullReactorChain, opts.AppendReactors...)
    
    	// Prepend the reaction chain with our reactors. Important, these MUST be prepended; not appended due to how the fake clientset works by default
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 09:49:59 UTC 2022
    - 10.3K bytes
    - Viewed (0)
  3. android/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)
  4. pkg/test/framework/components/cluster/kube/factory.go

    	istioKube "istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/framework/components/cluster"
    	"istio.io/istio/pkg/test/util/file"
    )
    
    const (
    	kubeconfigMetaKey = "kubeconfig"
    	vmSupportMetaKey  = "fakeVM"
    )
    
    func BuildKube(origCfg cluster.Config, topology cluster.Topology) (cluster.Cluster, error) {
    	cfg, err := validConfig(origCfg)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. pkg/kubelet/stats/cri_stats_provider_test.go

    	}
    
    	ctrl := gomock.NewController(t)
    	defer ctrl.Finish()
    
    	fakeOS := &kubecontainertest.FakeOS{}
    	fakeOS.ReadDirFn = func(path string) ([]os.DirEntry, error) {
    		var dirEntries []os.DirEntry
    		mockDE := kubecontainertest.NewMockDirEntry(ctrl)
    		switch path {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    					ImagePullPolicy: v1.PullIfNotPresent,
    				},
    			},
    		},
    	}
    
    	// Create fake sandbox and container
    	_, fakeContainers := makeAndSetFakePod(t, m, fakeRuntime, pod)
    	assert.Equal(t, len(fakeContainers), 1)
    
    	containerID := fakeContainers[0].Id
    	fakeOS := m.osInterface.(*containertest.FakeOS)
    	fakeOS.GlobFn = func(pattern, path string) bool {
    		pattern = strings.Replace(pattern, "*", ".*", -1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/podcgroupns_test.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestWithProcFs(t *testing.T) {
    	n := NewPodNetnsProcFinder(fakeFs())
    	pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{
    		Name:      "foo",
    		Namespace: "bar",
    		UID:       types.UID("863b91d4-4b68-4efa-917f-4b560e3e86aa"),
    	}}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. src/net/http/fs_test.go

    		{`<combo>?foo`, `<a href="%3Ccombo%3E%3Ffoo">&lt;combo&gt;?foo</a>`},
    		{`foo:bar`, `<a href="./foo:bar">foo:bar</a>`},
    	}
    
    	// We put each test file in its own directory in the fakeFS so we can look at it in isolation.
    	fs := make(fakeFS)
    	for i, test := range tests {
    		testFile := &fakeFileInfo{basename: test.name}
    		fs[fmt.Sprintf("/%d", i)] = &fakeFileInfo{
    			dir:     true,
    			modtime: time.Unix(1000000000, 0).UTC(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  9. tests/testdata/certs/dns/fake-cert-chain.pem

    Jacek Ewertowski <******@****.***> 1666619920 +0200
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 24 13:58:40 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  10. cni/pkg/plugin/plugin_test.go

    			Containers: []corev1.Container{app, proxy},
    		},
    	}
    
    	fakeNS := &corev1.Namespace{
    		TypeMeta: metav1.TypeMeta{
    			APIVersion: "core/v1",
    			Kind:       "Namespace",
    		},
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      testNSName,
    			Namespace: "",
    			Labels:    map[string]string{},
    		},
    	}
    
    	return fakePod, fakeNS
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top