Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for testOrg (0.16 sec)

  1. src/net/http/serve_test.go

    		}
    	}
    }
    
    func TestHandlerPanicNil(t *testing.T) {
    	run(t, func(t *testing.T, mode testMode) {
    		testHandlerPanic(t, false, mode, nil, nil)
    	}, testNotParallel)
    }
    
    func TestHandlerPanic(t *testing.T) {
    	run(t, func(t *testing.T, mode testMode) {
    		testHandlerPanic(t, false, mode, nil, "intentional death for testing")
    	}, testNotParallel)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  2. src/net/http/transport_test.go

    			}
    		},
    	})
    }
    
    func runCancelTest(t *testing.T, f func(t *testing.T, test cancelTest), opts ...any) {
    	run(t, func(t *testing.T, mode testMode) {
    		if mode == http1Mode {
    			t.Run("TransportCancel", func(t *testing.T) {
    				runCancelTestTransport(t, mode, f)
    			})
    		}
    		t.Run("RequestCancel", func(t *testing.T) {
    			runCancelTestChannel(t, mode, f)
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  3. src/database/sql/sql_test.go

    }
    
    type concurrentTest interface {
    	init(t testing.TB, db *DB)
    	finish(t testing.TB)
    	test(t testing.TB) error
    }
    
    type concurrentDBQueryTest struct {
    	db *DB
    }
    
    func (c *concurrentDBQueryTest) init(t testing.TB, db *DB) {
    	c.db = db
    }
    
    func (c *concurrentDBQueryTest) finish(t testing.TB) {
    	c.db = nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  4. src/crypto/x509/x509_test.go

    	}
    	return
    }
    
    func TestParsePKIXPublicKey(t *testing.T) {
    	t.Run("RSA", func(t *testing.T) {
    		pub := testParsePKIXPublicKey(t, pemPublicKey)
    		_, ok := pub.(*rsa.PublicKey)
    		if !ok {
    			t.Errorf("Value returned from ParsePKIXPublicKey was not an RSA public key")
    		}
    	})
    	t.Run("Ed25519", func(t *testing.T) {
    		pub := testParsePKIXPublicKey(t, pemEd25519Key)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  5. src/reflect/all_test.go

    type R23 R21
    type R24 R21
    
    func TestEmbed(t *testing.T) {
    	typ := TypeOf(R0{})
    	f, ok := typ.FieldByName("X")
    	if ok {
    		t.Fatalf(`FieldByName("X") should fail, returned %v`, f.Index)
    	}
    }
    
    func TestAllocsInterfaceBig(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping malloc count in short mode")
    	}
    	v := ValueOf(S{})
    	if allocs := testing.AllocsPerRun(100, func() { v.Interface() }); allocs > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  6. pkg/controller/podautoscaler/horizontal_test.go

    		requested += int(req.MilliValue())
    	}
    	tc.CPUCurrent = int32(100 * reported / requested)
    }
    
    func init() {
    	// set this high so we don't accidentally run into it when testing
    	scaleUpLimitFactor = 8
    }
    
    func (tc *testCase) prepareTestClient(t *testing.T) (*fake.Clientset, *metricsfake.Clientset, *cmfake.FakeCustomMetricsClient, *emfake.FakeExternalMetricsClient, *scalefake.FakeScaleClient) {
    	namespace := "test-namespace"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_test.go

    	cadvisortest "k8s.io/kubernetes/pkg/kubelet/cadvisor/testing"
    	"k8s.io/kubernetes/pkg/kubelet/clustertrustbundle"
    	"k8s.io/kubernetes/pkg/kubelet/cm"
    	"k8s.io/kubernetes/pkg/kubelet/config"
    	"k8s.io/kubernetes/pkg/kubelet/configmap"
    	kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
    	containertest "k8s.io/kubernetes/pkg/kubelet/container/testing"
    	"k8s.io/kubernetes/pkg/kubelet/eviction"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/runtime/framework_test.go

    			if tt.initErr && err == nil {
    				t.Fatal("Framework initialization should fail")
    			}
    			if !tt.initErr && err != nil {
    				t.Fatalf("Failed to create framework for testing: %v", err)
    			}
    		})
    	}
    }
    
    func TestNewFrameworkErrors(t *testing.T) {
    	tests := []struct {
    		name      string
    		plugins   *config.Plugins
    		pluginCfg []config.PluginConfig
    		wantErr   string
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  9. pkg/controller/daemon/daemon_controller_test.go

    	}
    	return nil
    }
    
    func expectSyncDaemonSets(t *testing.T, manager *daemonSetsController, ds *apps.DaemonSet, podControl *fakePodControl, expectedCreates, expectedDeletes int, expectedEvents int) {
    	t.Helper()
    	expectSyncDaemonSetsWithError(t, manager, ds, podControl, expectedCreates, expectedDeletes, expectedEvents, nil)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  10. pkg/scheduler/internal/queue/scheduling_queue_test.go

    			actions: []action{
    				{callback: func(t *testing.T, q *PriorityQueue) { poppedPod = popPod(t, logger, q, pod) }},
    				{eventHappens: &NodeAdd},
    				{callback: func(t *testing.T, q *PriorityQueue) { poppedPod2 = popPod(t, logger, q, pod2) }},
    				{eventHappens: &AssignedPodAdd},
    				{callback: func(t *testing.T, q *PriorityQueue) {
    					logger, _ := ktesting.NewTestContext(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
Back to top