Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 107 for testCode (0.17 sec)

  1. src/net/http/responsecontroller_test.go

    	"fmt"
    	"io"
    	. "net/http"
    	"os"
    	"sync"
    	"testing"
    	"time"
    )
    
    func TestResponseControllerFlush(t *testing.T) { run(t, testResponseControllerFlush) }
    func testResponseControllerFlush(t *testing.T, mode testMode) {
    	continuec := make(chan struct{})
    	cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		ctl := NewResponseController(w)
    		w.Write([]byte("one"))
    		if err := ctl.Flush(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:20:31 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-use/src/test/groovy/org/gradle/plugin/software/internal/DefaultSoftwareTypeRegistryTest.groovy

            1 * propertyMetadata.getDeclaredType() >> TypeToken.of(TestModel.class)
            1 * propertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(softwareType)
            2 * softwareType.name() >> "test"
            2 * softwareType.modelPublicType() >> TestModel
            1 * metadataStore.getTypeMetadata(TestModel) >> modelTypeMetadata
            1 * modelTypeMetadata.getPropertiesMetadata() >> []
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 16:02:29 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/informers_test.go

    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/monitoring/monitortest"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestExistingPodAddedWhenNsLabeled(t *testing.T) {
    	setupLogging()
    	NodeName = "testnode"
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    		},
    		Spec: corev1.PodSpec{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx_test.cc

      std::vector<NodeDefBuilder::NodeOut> src_list;
      src_list.emplace_back("input", 0, DT_FLOAT);
      NodeDef test_node;
      auto status = NodeDefBuilder("float_add", "MyAddN")
                        .Input(src_list)
                        .Finalize(&test_node);
      EXPECT_TRUE(status.ok());
      auto decomposed = test_ctx_->ExpandNode(test_node, "test");
      EXPECT_TRUE(decomposed.ok());
      std::vector<NodeAndType> expected_results{{"Identity", DT_FLOAT}};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/spock/Spock2FilteringIntegrationTest.groovy

                    def "super super test"() $testBody
                    def "super super unrolled test"() $unrolledTestBody
                    def "super super unrolled test param=#param"() $unrolledTestBody
                }
            """
            file("src/test/groovy/SuperClass.groovy") << """
                abstract class SuperClass extends SuperSuperClass {
                    def "super test"() $testBody
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. pkg/kubelet/network/dns/dns_test.go

    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.desc, func(t *testing.T) {
    			testPod.Spec.HostNetwork = tc.hostnetwork
    			testPod.Spec.DNSConfig = tc.dnsConfig
    			testPod.Spec.DNSPolicy = tc.dnsPolicy
    
    			resDNSConfig, err := configurer.GetPodDNS(testPod)
    			if err != nil {
    				t.Errorf("%s: GetPodDNS(%v), unexpected error: %v", tc.desc, testPod, err)
    			}
    			if !dnsConfigsAreEqual(resDNSConfig, tc.expectedDNSConfig) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  7. pilot/pkg/security/authn/utils/utils_test.go

    		},
    	}
    	for i := range tests {
    		tt := &tests[i]
    		t.Run(tt.name, func(t *testing.T) {
    			testNode := &model.Proxy{
    				Labels: map[string]string{
    					"app": "foo",
    				},
    				Metadata: &model.NodeMetadata{},
    			}
    
    			got := BuildInboundTLS(model.MTLSStrict, testNode, networking.ListenerProtocolTCP, []string{}, tls.TlsParameters_TLSv1_2, &tt.mesh)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 10 20:24:43 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. src/net/http/fs_test.go

    // in "Range": "bytes=-N", and should reject "bytes=--2".
    func TestServeFileRejectsInvalidSuffixLengths(t *testing.T) {
    	run(t, testServeFileRejectsInvalidSuffixLengths, []testMode{http1Mode, https1Mode, http2Mode})
    }
    func testServeFileRejectsInvalidSuffixLengths(t *testing.T, mode testMode) {
    	cst := newClientServerTest(t, mode, FileServer(Dir("testdata"))).ts
    
    	tests := []struct {
    		r        string
    		wantCode int
    		wantBody string
    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. cmd/kubeadm/app/util/apiclient/idempotency_test.go

    			name:       "patch node when timeout",
    			lookupName: "testnode",
    			node: v1.Node{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:   "testnode",
    					Labels: map[string]string{v1.LabelHostname: ""},
    				},
    			},
    			success:   false,
    			fakeError: apierrors.NewTimeoutError("fake timeout", -1),
    		},
    		{
    			name:       "patch node when conflict",
    			lookupName: "testnode",
    			node: v1.Node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  10. pkg/scheduler/internal/cache/cache_test.go

    		podsToAssume: []*v1.Pod{testPods[0]},
    		podsToAdd:    []*v1.Pod{testPods[0]},
    		podsToUpdate: []*v1.Pod{testPods[0], testPods[1], testPods[0]},
    		wNodeInfo: []*framework.NodeInfo{newNodeInfo(
    			&framework.Resource{
    				MilliCPU: 200,
    				Memory:   1024,
    			},
    			&framework.Resource{
    				MilliCPU: 200,
    				Memory:   1024,
    			},
    			[]*v1.Pod{testPods[1]},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 63.8K bytes
    - Viewed (0)
Back to top