- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 174 for roundTrip (0.16 sec)
-
src/net/http/roundtrip.go
// RoundTrip implements the [RoundTripper] interface. // // For higher-level HTTP client support (such as handling of cookies // and redirects), see [Get], [Post], and the [Client] type. // // Like the RoundTripper interface, the error types returned // by RoundTrip are unspecified. func (t *Transport) RoundTrip(req *Request) (*Response, error) { return t.roundTrip(req)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 988 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go
// They don't roundtrip and thus can be excluded in any custom/downstream roundtrip tests // // kinds := scheme.AllKnownTypes() // for gvk := range kinds { // if roundtrip.GlobalNonRoundTrippableTypes().Has(gvk.Kind) { // continue // } // t.Run(gvk.Group+"."+gvk.Version+"."+gvk.Kind, func(t *testing.T) { // // roundtrip test // }) // }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 16.8K bytes - Viewed (0) -
src/net/http/transport_dial_test.go
// to let tests associate requests with connections. c.Conn = nc return c, err } }) return dt } // roundTrip starts a RoundTrip. // It returns immediately, without waiting for the RoundTrip call to complete. func (dt *transportDialTester) roundTrip() *transportDialTesterRoundTrip { dt.t.Helper() ctx, cancel := context.WithCancel(context.Background()) pr, pw := io.Pipe()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:11:57 UTC 2024 - 6.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/install/roundtrip_test.go
limitations under the License. */ package install import ( "testing" "k8s.io/apimachinery/pkg/api/apitesting/roundtrip" examplefuzzer "k8s.io/apiserver/pkg/apis/example/fuzzer" ) func TestRoundTrip(t *testing.T) { roundtrip.RoundTripTestForAPIGroup(t, Install, examplefuzzer.Funcs) roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, examplefuzzer.Funcs)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 03:35:42 UTC 2019 - 905 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example2/install/roundtrip_test.go
limitations under the License. */ package install import ( "testing" "k8s.io/apimachinery/pkg/api/apitesting/roundtrip" examplefuzzer "k8s.io/apiserver/pkg/apis/example/fuzzer" ) func TestRoundTrip(t *testing.T) { roundtrip.RoundTripTestForAPIGroup(t, Install, examplefuzzer.Funcs) roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, examplefuzzer.Funcs)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 03:35:42 UTC 2019 - 905 bytes - Viewed (0) -
pkg/apis/flowcontrol/v1beta3/conversion_test.go
name string in *v1beta3.PriorityLevelConfiguration expected *flowcontrol.PriorityLevelConfiguration }{ { name: "v1beta3 object, the roundtrip annotation is set, NominalConcurrencyShares is zero; the internal object should not have the roundtrip annotation set", in: inObjFn(0, map[string]string{ "foo": "bar", v1beta3.PriorityLevelPreserveZeroConcurrencySharesKey: "", }),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 22:22:51 UTC 2023 - 7.6K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/roundtrip_test.go
scheme := runtime.NewScheme() for _, builder := range groups { require.NoError(t, builder.AddToScheme(scheme)) } opts := roundtrip.NewCompatibilityTestOptions(scheme) // Fill unstructured JSON field types opts.FillFuncs = map[reflect.Type]roundtrip.FillFunc{ reflect.TypeOf(&apiextensionv1.JSON{}): func(s string, i int, obj interface{}) { obj.(*apiextensionv1.JSON).Raw = []byte(strconv.Quote(s + "Value"))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 19:12:59 UTC 2023 - 2K bytes - Viewed (0) -
pkg/apis/resource/v1alpha2/defaults_test.go
Spec: v1alpha2.ResourceClaimSpec{ AllocationMode: nonDefaultMode, }, } output = roundTrip(t, runtime.Object(claim)).(*v1alpha2.ResourceClaim) outMode = output.Spec.AllocationMode if outMode != v1alpha2.AllocationModeImmediate { t.Errorf("Expected AllocationMode to remain %+v, got: %+v", nonDefaultMode, outMode) } } func roundTrip(t *testing.T, obj runtime.Object) runtime.Object {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 06:52:03 UTC 2023 - 2.2K bytes - Viewed (0) -
pkg/controller/apis/config/scheme/scheme_test.go
limitations under the License. */ package scheme import ( "testing" "k8s.io/apimachinery/pkg/api/apitesting/roundtrip" "k8s.io/kubernetes/pkg/controller/apis/config/fuzzer" ) func TestRoundTripTypes(t *testing.T) { roundtrip.RoundTripTestForScheme(t, Scheme, fuzzer.Funcs)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 25 09:31:47 UTC 2018 - 819 bytes - Viewed (0) -
pkg/apis/storage/v1beta1/defaults_test.go
featuregatetesting "k8s.io/component-base/featuregate/testing" "k8s.io/kubernetes/pkg/api/legacyscheme" _ "k8s.io/kubernetes/pkg/apis/storage/install" "k8s.io/kubernetes/pkg/features" ) func roundTrip(t *testing.T, obj runtime.Object) runtime.Object { codec := legacyscheme.Codecs.LegacyCodec(storagev1beta1.SchemeGroupVersion) data, err := runtime.Encode(codec, obj) if err != nil { t.Errorf("%v\n %#v", err, obj)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 6.4K bytes - Viewed (0)