Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 174 for roundTrip (0.23 sec)

  1. src/net/url/url_test.go

    			t.Errorf("QueryEscape(%q) = %q, want %q", tt.in, actual, tt.out)
    		}
    
    		// for bonus points, verify that escape:unescape is an identity.
    		roundtrip, err := QueryUnescape(actual)
    		if roundtrip != tt.in || err != nil {
    			t.Errorf("QueryUnescape(%q) = %q, %s; want %q, %s", actual, roundtrip, err, tt.in, "[no error]")
    		}
    	}
    }
    
    var pathEscapeTests = []EscapeTest{
    	{
    		"",
    		"",
    		nil,
    	},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  2. pkg/apis/autoscaling/v2/defaults_test.go

    					},
    				},
    			},
    			test: "test empty array value for Annotations",
    		},
    	}
    
    	for _, test := range tests {
    		hpa := &test.hpa
    		hpaBeforeMuatate := *hpa.DeepCopy()
    		obj := roundTrip(t, runtime.Object(hpa))
    		final_obj, ok := obj.(*autoscalingv2.HorizontalPodAutoscaler)
    		if !ok {
    			t.Fatalf("unexpected object: %v", obj)
    		}
    		if !reflect.DeepEqual(*hpa, hpaBeforeMuatate) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/pass_pipeline.h

    // Passes for unpacking quantized ops to int valued StableHLO ops. This is
    // useful when uniform quantized types are suboptimal for the hardware. It goes
    // through a StableHLO <-> MHLO roundtrip to utilize the MHLOQuantToInt pass.
    void AddStablehloQuantToIntPasses(OpPassManager& pm);
    
    // Processes tensors with NCHW format (== (batch, channel, height, weight)) by
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 12:53:33 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. src/strconv/ftoa_test.go

    			s := FormatFloat(f, 'e', -1, 64)
    			if x, _ := ParseFloat(s, 64); x != f {
    				t.Errorf("failed roundtrip %v => %s => %v", f, s, x)
    			}
    		}
    		f32 := float32(f)
    		if !math.IsInf(float64(f32), 0) {
    			s := FormatFloat(float64(f32), 'e', -1, 32)
    			if x, _ := ParseFloat(s, 32); float32(x) != f32 {
    				t.Errorf("failed roundtrip %v => %s => %v", f32, s, float32(x))
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 24 23:50:20 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  5. pkg/apis/batch/v1/defaults_test.go

    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.JobPodReplacementPolicy, test.enablePodReplacementPolicy)
    			original := test.original
    			expected := test.expected
    			obj2 := roundTrip(t, runtime.Object(original))
    			actual, ok := obj2.(*batchv1.Job)
    			if !ok {
    				t.Fatalf("Unexpected object: %v", actual)
    			}
    
    			if diff := cmp.Diff(expected.Spec.Suspend, actual.Spec.Suspend); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  6. pkg/spiffe/spiffe_test.go

    				t.Fatal(err)
    			}
    			if !reflect.DeepEqual(got, *tt.expected) {
    				t.Fatalf("expected %#v, got %#v", *tt.expected, got)
    			}
    
    			roundTrip := got.String()
    			if roundTrip != tt.input {
    				t.Fatalf("round trip failed, expected %q got %q", tt.input, roundTrip)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/net/http_test.go

    			agent := tt.agent
    			if len(agent) == 0 {
    				agent = "-"
    			}
    			expect := WarningHeader{Code: tt.code, Agent: agent, Text: tt.text}
    			if roundTrip != expect {
    				t.Fatalf("after round trip, want:\n%#v\ngot\n%#v", expect, roundTrip)
    			}
    		})
    	}
    }
    
    func TestParseWarningHeaders(t *testing.T) {
    	tests := []struct {
    		name string
    
    		headers []string
    
    		want     []WarningHeader
    		wantErrs []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:21:56 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/etcd3/latency_tracker.go

    // round trips (the time it takes to send data to etcd and get the
    // complete response back)
    //
    // If an API request involves N (N>=1) round trips to etcd, then we will sum
    // up the latenciy incurred in each roundtrip.
    
    // It uses the context associated with the request in flight, so there
    // are no states shared among the requests in flight, and so there is no
    // concurrency overhead.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  9. src/cmd/internal/goobj/objfile_test.go

    	wr := &bio.Writer{Writer: bufio.NewWriter(buf)} // hacky: no file, so cannot seek
    	return NewWriter(wr)
    }
    
    func TestReadWrite(t *testing.T) {
    	// Test that we get the same data in a write-read roundtrip.
    
    	// Write a symbol, a relocation, and an aux info.
    	var buf bytes.Buffer
    	w := dummyWriter(&buf)
    
    	var s Sym
    	s.SetABI(1)
    	s.SetType(uint8(objabi.STEXT))
    	s.SetFlag(0x12)
    	s.SetSiz(12345)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:12 UTC 2022
    - 3K bytes
    - Viewed (0)
  10. src/net/http/filetransport.go

    //	c := &http.Client{Transport: t}
    //	res, err := c.Get("file:///etc/passwd")
    //	...
    func NewFileTransportFS(fsys fs.FS) RoundTripper {
    	return NewFileTransport(FS(fsys))
    }
    
    func (t fileTransport) RoundTrip(req *Request) (resp *Response, err error) {
    	// We start ServeHTTP in a goroutine, which may take a long
    	// time if the file is large. The newPopulateResponseWriter
    	// call returns a channel which either ServeHTTP or finish()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top