Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 699 for unmarshalV1 (0.19 sec)

  1. internal/s3select/csv/args.go

    	CommentCharacter           string `xml:"Comments"`
    	AllowQuotedRecordDelimiter bool   `xml:"AllowQuotedRecordDelimiter"`
    	unmarshaled                bool
    }
    
    // IsEmpty - returns whether reader args is empty or not.
    func (args *ReaderArgs) IsEmpty() bool {
    	return !args.unmarshaled
    }
    
    // UnmarshalXML - decodes XML data.
    func (args *ReaderArgs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go

    	}
    
    	for _, c := range cases {
    		var result MicroTimeHolder
    		if err := yaml.Unmarshal([]byte(c.input), &result); err != nil {
    			t.Errorf("Failed to unmarshal input '%v': %v", c.input, err)
    		}
    		if result.T != c.result {
    			t.Errorf("Failed to unmarshal input '%v': expected %+v, got %+v", c.input, c.result, result)
    		}
    	}
    }
    
    func TestMicroTimeMarshalJSON(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/networkfilter_test.go

    	}
    	if config, ok := redisFilter.ConfigType.(*listener.Filter_TypedConfig); ok {
    		redisProxy := redis.RedisProxy{}
    		if err := config.TypedConfig.UnmarshalTo(&redisProxy); err != nil {
    			t.Errorf("unmarshal failed: %v", err)
    		}
    		if redisProxy.StatPrefix != "redis" {
    			t.Errorf("redis proxy statPrefix is %s", redisProxy.StatPrefix)
    		}
    		if !redisProxy.LatencyInMicros {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go

    			obj:  &F{},
    			err:  fmt.Errorf("json: cannot unmarshal number into Go value of type string"),
    		},
    		{
    			// Invalid string data
    			data: "{\"fa\":13.5}",
    			obj:  &F{},
    			err:  fmt.Errorf("json: cannot unmarshal number into Go value of type string"),
    		},
    		{
    			// Invalid string data
    			data: "{\"fa\":true}",
    			obj:  &F{},
    			err:  fmt.Errorf("json: cannot unmarshal bool into Go value of type string"),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  5. operator/pkg/manifest/shared.go

    func overlaySetFlagValues(iopYAML string, setFlags []string) (string, error) {
    	iop := make(map[string]any)
    	if err := yaml.Unmarshal([]byte(iopYAML), &iop); err != nil {
    		return "", err
    	}
    	// Unmarshal returns nil for empty manifests but we need something to insert into.
    	if iop == nil {
    		iop = make(map[string]any)
    	}
    
    	for _, sf := range setFlags {
    		p, v := getPV(sf)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 03 06:27:07 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go

    				if err != nil {
    					t.Fatalf("unexpected error from Marshal of original: %v", err)
    				}
    
    				var iface interface{}
    				if err := modePair.dec.Unmarshal(cborFromOriginal, &iface); err != nil {
    					t.Fatalf("unexpected error from Unmarshal into %T: %v", &iface, err)
    				}
    
    				cborFromIface, err := modePair.enc.Marshal(iface)
    				if err != nil {
    					t.Fatalf("unexpected error from Marshal of iface: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 21:48:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go

    	}
    
    	for _, c := range cases {
    		var result TimeHolder
    		if err := yaml.Unmarshal([]byte(c.input), &result); err != nil {
    			t.Errorf("Failed to unmarshal input '%v': %v", c.input, err)
    		}
    		if result.T != c.result {
    			t.Errorf("Failed to unmarshal input '%v': expected %+v, got %+v", c.input, c.result, result)
    		}
    	}
    }
    
    func TestTimeMarshalJSON(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. istioctl/pkg/util/configdump/route.go

    		drc[i].RouteConfig.TypeUrl = v3.RouteType
    	}
    	sort.Slice(drc, func(i, j int) bool {
    		r := &route.RouteConfiguration{}
    		err = drc[i].RouteConfig.UnmarshalTo(r)
    		if err != nil {
    			return false
    		}
    		name := r.Name
    		err = drc[j].RouteConfig.UnmarshalTo(r)
    		if err != nil {
    			return false
    		}
    		return name < r.Name
    	})
    
    	// In Istio 1.5, it is not enough just to sort the routes.  The virtual hosts
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  9. istioctl/pkg/util/configdump/listener.go

    		dal[i].ActiveState.Listener.TypeUrl = v3.ListenerType
    	}
    	sort.Slice(dal, func(i, j int) bool {
    		l := &listener.Listener{}
    		err = dal[i].ActiveState.Listener.UnmarshalTo(l)
    		if err != nil {
    			return false
    		}
    		name := l.Name
    		err = dal[j].ActiveState.Listener.UnmarshalTo(l)
    		if err != nil {
    			return false
    		}
    		return name < l.Name
    	})
    	if stripVersions {
    		for i := range dal {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  10. src/encoding/json/number_test.go

    		"-0e+1",
    		"-0e-34",
    	}
    
    	for _, test := range validTests {
    		if !isValidNumber(test) {
    			t.Errorf("%s should be valid", test)
    		}
    
    		var f float64
    		if err := Unmarshal([]byte(test), &f); err != nil {
    			t.Errorf("%s should be valid but Unmarshal failed: %v", test, err)
    		}
    
    		if !jsonNumberRegexp.MatchString(test) {
    			t.Errorf("%s should be valid but regexp does not match", test)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 24 05:40:28 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top