- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 348 for lake (0.06 sec)
-
pkg/probe/exec/exec_test.go
for i, test := range tests { featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.ExecProbeTimeout, test.execProbeTimeout) fake := FakeCmd{ out: []byte(test.output), err: test.err, } status, output, err := prober.Probe(&fake) if status != test.expectedStatus { t.Errorf("[%d] expected %v, got %v", i, test.expectedStatus, status) } if err != nil && !test.expectError {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 3.8K bytes - Viewed (0) -
src/go/types/package.go
import ( "fmt" ) // A Package describes a Go package. type Package struct { path string name string scope *Scope imports []*Package complete bool fake bool // scope lookup errors are silently dropped if package is fake (internal use only) cgo bool // uses of this package will be rewritten into uses of declarations from _cgo_gotypes.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 3K bytes - Viewed (0) -
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) -
pkg/kubelet/runonce_test.go
clock: clock.RealClock{}, kubeClient: &fake.Clientset{}, hostname: testKubeletHostname, nodeName: testKubeletHostname, runtimeState: newRuntimeState(time.Second), hostutil: hostutil.NewFakeHostUtil(nil), } kb.containerManager = cm.NewStubContainerManager() plug := &volumetest.FakeVolumePlugin{PluginName: "fake", Host: nil} kb.volumePluginMgr, err =
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 06:59:54 UTC 2024 - 6.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime_stack_test.go
// HandleErrorWithContext(ctx, errors.New("fake error"), "test") klog.Flush() // Strip varying header. Code location should be constant and something // that needs to be tested. output := buffer.String() output = regexp.MustCompile(`^.* ([^[:space:]]*.go:[[:digit:]]*)\] `).ReplaceAllString(output, `xxx $1] `) fmt.Print(output) // Output: // xxx runtime_stack_test.go:60] "test" err="fake error" logger="UnhandledError" request=42
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 1.9K bytes - Viewed (0) -
plugin/pkg/admission/namespace/exists/admission_test.go
return handler, f, err } // newMockClientForTest creates a mock client that returns a client configured for the specified list of namespaces. func newMockClientForTest(namespaces []string) *fake.Clientset { mockClient := &fake.Clientset{} mockClient.AddReactor("list", "namespaces", func(action core.Action) (bool, runtime.Object, error) { namespaceList := &corev1.NamespaceList{ ListMeta: metav1.ListMeta{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 4.4K bytes - Viewed (0) -
pilot/pkg/server/instance_test.go
"istio.io/istio/pilot/pkg/server" "istio.io/istio/pkg/test" ) func TestStartWithError(t *testing.T) { g := NewWithT(t) inst := server.New() expected := errors.New("fake") inst.RunComponent("fake", func(stop <-chan struct{}) error { return expected }) stop := newReclosableChannel() t.Cleanup(stop.Close) g.Expect(inst.Start(stop.c)).To(Equal(expected)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 23:02:39 UTC 2024 - 4.1K bytes - Viewed (0) -
plugin/pkg/admission/namespace/autoprovision/admission_test.go
return handler, f, err } // newMockClientForTest creates a mock client that returns a client configured for the specified list of namespaces. func newMockClientForTest(namespaces []string) *fake.Clientset { mockClient := &fake.Clientset{} mockClient.AddReactor("list", "namespaces", func(action core.Action) (bool, runtime.Object, error) { namespaceList := &corev1.NamespaceList{ ListMeta: metav1.ListMeta{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 7.5K bytes - Viewed (0) -
istioctl/pkg/waypoint/testdata/waypoint/all-gateway
NAMESPACE NAME REVISION PROGRAMMED default waypoint default True
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 16 21:30:40 UTC 2024 - 141 bytes - Viewed (0) -
security/pkg/server/ca/authenticate/kubeauth/kube_jwt_test.go
} client := fake.NewSimpleClientset() if !tc.remoteCluster { client.PrependReactor("create", "tokenreviews", func(action ktesting.Action) (bool, runtime.Object, error) { return true, tokenReview, nil }) } remoteKubeClientGetter := func(clusterID cluster.ID) kubernetes.Interface { if clusterID == remoteCluster { client := fake.NewSimpleClientset() if tc.remoteCluster {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 6.1K bytes - Viewed (0)