Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 174 for roundTrip (0.28 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/fuzz_race.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package roundtrip
    
    // in race-detection mode, lower the number of iterations to keep reasonable runtimes in CI
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 741 bytes
    - Viewed (0)
  2. pkg/apis/flowcontrol/fuzzer/fuzzer.go

    	return []interface{}{
    		func(obj *flowcontrol.LimitedPriorityLevelConfiguration, c fuzz.Continue) {
    			c.FuzzNoCustom(obj) // fuzz self without calling this function again
    
    			// NOTE: setting a zero value here will cause the roundtrip
    			// test (from internal to v1beta2, v1beta1) to fail
    			if obj.NominalConcurrencyShares == 0 {
    				obj.NominalConcurrencyShares = int32(1)
    			}
    			if obj.LendablePercent == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. internal/grid/trace.go

    		return c.roundtrip(h, req)
    	}
    
    	// Following trimming is needed for consistency between outputs with other internode traces.
    	local := strings.TrimPrefix(strings.TrimPrefix(t.Local, httpsScheme), httpScheme)
    	remote := strings.TrimPrefix(strings.TrimPrefix(t.Remote, httpsScheme), httpScheme)
    
    	start := time.Now()
    	body := bytesOrLength(req)
    	resp, err := c.roundtrip(h, req)
    	end := time.Now()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-stablehlo-tfl-composite.mlir

    module {
      func.func public @main(%arg0: tensor<3x3xf32>, %arg1: tensor<3x3xf32>, %arg2: tensor<1x100x32x4xf32>,
          %arg3: tensor<1x500x4x4xf32>, %arg4: tensor<1x500x4x4xf32>, %arg5: tensor<1x1x100x500xf32>, %arg6: tensor<f32>)
          -> tensor<1x100x32x4xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/command_headers_test.go

    func (rtc *cancellableRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
    	return nil, nil
    }
    
    func (rtc *cancellableRoundTripper) CancelRequest(req *http.Request) {
    	req.Close = true
    }
    
    // Test RoundTripper without CancelRequest function.
    type nonCancellableRoundTripper struct{}
    
    func (rtc *nonCancellableRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
    	return nil, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 20 20:34:02 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/basic_lstm.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    // Ensure basic_lstm roundtrip exactly
    
    func.func @main(%arg0: tensor<1x384xf32>, %arg1: tensor<1x96xf32>, %arg2: tensor<384x480xf32>, %arg3: tensor<384xf32>, %arg4: tensor<1x96xf32>) -> tensor<1x96xf32> {
    // CHECK-LABEL: @main
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. pkg/apis/apps/v1beta1/defaults_test.go

    					Template:                defaultTemplate,
    				},
    			},
    		},
    	}
    
    	for _, test := range tests {
    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		got, ok := obj2.(*appsv1beta1.Deployment)
    		if !ok {
    			t.Errorf("unexpected object: %v", got)
    			t.FailNow()
    		}
    		if !apiequality.Semantic.DeepEqual(got.Spec, expected.Spec) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. internal/grid/connection_test.go

    	const testPayload = "Hello Grid World!"
    
    	gotResp := make(chan struct{})
    	go func() {
    		start := time.Now()
    		t.Log("Roundtrip: sending request")
    		resp, err := remoteConn.Request(context.Background(), handlerTest, []byte(testPayload))
    		t.Log("Roundtrip:", time.Since(start), resp, err)
    		gotResp <- struct{}{}
    	}()
    	<-gotCall
    	remote.debugMsg(debugKillInbound)
    	local.debugMsg(debugKillInbound)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 6K bytes
    - Viewed (0)
  9. src/encoding/json/fuzz_test.go

    				return
    			}
    
    			encoded, err := Marshal(i)
    			if err != nil {
    				t.Fatalf("failed to marshal: %s", err)
    			}
    
    			if err := Unmarshal(encoded, i); err != nil {
    				t.Fatalf("failed to roundtrip: %s", err)
    			}
    		}
    	})
    }
    
    func FuzzDecoderToken(f *testing.F) {
    	f.Add([]byte(`{
    "object": {
    	"slice": [
    		1,
    		2.0,
    		"3",
    		[4],
    		{5: {}}
    	]
    },
    "slice": [[]],
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 13 18:06:33 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/id/UniqueIdTest.groovy

    class UniqueIdTest extends Specification {
    
        def "generates unique values"() {
            expect:
            def n = 100
            (1..n).collect { UniqueId.generate() }.unique().size() == n
        }
    
        def "can roundtrip to / from string"() {
            when:
            def id = UniqueId.generate()
            def s = id.asString()
    
            then:
            UniqueId.from(s) == id
            UniqueId.from(s).asString() == s
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top