Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 554 for unmarshalV1 (0.25 sec)

  1. cmd/batch-expire.go

    type BatchJobExpirePurge struct {
    	line, col      int
    	RetainVersions int `yaml:"retainVersions" json:"retainVersions"`
    }
    
    var _ yaml.Unmarshaler = &BatchJobExpirePurge{}
    
    // UnmarshalYAML - BatchJobExpirePurge extends unmarshal to extract line, col
    func (p *BatchJobExpirePurge) UnmarshalYAML(val *yaml.Node) error {
    	type purge BatchJobExpirePurge
    	var tmp purge
    	err := val.Decode(&tmp)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 13:50:53 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/pilot/status.go

    	for _, dr := range drs {
    		for _, resource := range dr.Resources {
    			clientConfig := xdsstatus.ClientConfig{}
    			err := resource.UnmarshalTo(&clientConfig)
    			if err != nil {
    				return nil, nil, fmt.Errorf("could not unmarshal ClientConfig: %w", err)
    			}
    			meta, err := model.ParseMetadata(clientConfig.GetNode().GetMetadata())
    			if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 04:16:55 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. cmd/xl-storage-format_test.go

    }
    
    // Tests the correctness of constructing XLMetaV1 using jsoniter lib.
    // The result will be compared with the result obtained from json.unMarshal of the byte data.
    func TestGetXLMetaV1Jsoniter1(t *testing.T) {
    	xlMetaJSON := getXLMetaBytes(1)
    
    	var unMarshalXLMeta xlMetaV1Object
    	if err := json.Unmarshal(xlMetaJSON, &unMarshalXLMeta); err != nil {
    		t.Errorf("Unmarshalling failed: %v", err)
    	}
    
    	var jsoniterXLMeta xlMetaV1Object
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. src/net/netip/netip_test.go

    		}
    	}
    
    	// Cannot unmarshal from unexpected lengths.
    	for _, n := range []int{3, 6} {
    		var prefix2 Prefix
    		if err := prefix2.UnmarshalBinary(bytes.Repeat([]byte{1}, n)); err == nil {
    			t.Fatalf("unmarshaled from unexpected length %d", n)
    		}
    	}
    }
    
    func TestAddrMarshalUnmarshal(t *testing.T) {
    	// This only tests the cases where Marshal/Unmarshal diverges from
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  5. src/encoding/json/encode_test.go

    		t.Fatalf("Marshal:\n\tgot:  %s\n\twant: %s", got, want)
    	}
    	var back stringPointer
    	switch err = Unmarshal(b, &back); {
    	case err != nil:
    		t.Fatalf("Unmarshal error: %v", err)
    	case back.N == nil:
    		t.Fatalf("Unmarshal: back.N = nil, want non-nil")
    	case *back.N != 42:
    		t.Fatalf("Unmarshal: *back.N = %d, want 42", *back.N)
    	}
    }
    
    var encodeStringTests = []struct {
    	in  string
    	out string
    }{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  6. pkg/istio-agent/xds_proxy_delta_test.go

    	}
    	gotEcdsConfig := &core.TypedExtensionConfig{}
    	if err := gotResp.Resources[0].Resource.UnmarshalTo(gotEcdsConfig); err != nil {
    		t.Fatalf("wasm config conversion output %v failed to unmarshal", gotResp.Resources[0])
    	}
    	assert.Equal(t, gotResp.Resources[0].Name, "extension-config")
    	wasm := &wasm.Wasm{
    		Config: &wasmv3.PluginConfig{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 04:48:02 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. src/encoding/json/bench_test.go

    		var f float64
    		for pb.Next() {
    			if err := Unmarshal(data, &f); err != nil {
    				b.Fatalf("Unmarshal error: %v", err)
    			}
    		}
    	})
    }
    
    func BenchmarkUnmarshalInt64(b *testing.B) {
    	b.ReportAllocs()
    	data := []byte(`3`)
    	b.RunParallel(func(pb *testing.PB) {
    		var x int64
    		for pb.Next() {
    			if err := Unmarshal(data, &x); err != nil {
    				b.Fatalf("Unmarshal error: %v", err)
    			}
    		}
    	})
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:00:17 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. cni/pkg/log/uds.go

    	var raw map[string]json.RawMessage
    	if err := json.Unmarshal([]byte(l), &raw); err != nil {
    		log.Debugf("Failed to unmarshal CNI plugin log entry: %v", err)
    		return cniLog{}, false
    	}
    	var msg cniLog
    	if err := json.Unmarshal(raw["msg"], &msg.Msg); err != nil {
    		log.Debugf("Failed to unmarshal CNI plugin log entry: %v", err)
    		return cniLog{}, false
    	}
    	if err := json.Unmarshal(raw["level"], &msg.Level); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationRequest.java

         */
        BeanConfigurationRequest setBean(Object bean);
    
        /**
         * Gets the configuration to unmarshal into the bean.
         *
         * @return The configuration to unmarshal into the bean or {@code null} if none.
         */
        Object getConfiguration();
    
        /**
         * Sets the configuration to unmarshal into the bean. The configuration should be taken from
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  10. 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)
Back to top