- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TestUnmarshal (0.22 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder_test.go
if err == nil { t.Fatal("expected error with yaml: prefix, got no error") } if _, ok := err.(YAMLSyntaxError); !ok { t.Fatalf("expected %q to be of type YAMLSyntaxError", err.Error()) } } func TestUnmarshal(t *testing.T) { mapWithIntegerBytes := []byte(`replicas: 1`) mapWithInteger := make(map[string]interface{}) if err := Unmarshal(mapWithIntegerBytes, &mapWithInteger); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 12.4K bytes - Viewed (0) -
src/encoding/asn1/asn1_test.go
{[]byte{0x12, 0x0b, '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ' '}, newString("0123456789 ")}, } func TestUnmarshal(t *testing.T) { for i, test := range unmarshalTestData { pv := reflect.New(reflect.TypeOf(test.out).Elem()) val := pv.Interface() _, err := Unmarshal(test.in, val) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 29 18:24:36 UTC 2023 - 43.6K bytes - Viewed (0) -
src/encoding/xml/marshal_test.go
t.Errorf("#%d: marshal(%#v) = [error kind] %s, want %s", idx, test.Value, kind, test.Kind) } } } } // Do invertibility testing on the various structures that we test func TestUnmarshal(t *testing.T) { for i, test := range marshalTests { if test.MarshalOnly { continue } if _, ok := test.Value.(*Plain); ok { continue } if test.ExpectXML == `<top>`+
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 66K bytes - Viewed (0) -
src/encoding/json/decode_test.go
} } func equalError(a, b error) bool { if a == nil || b == nil { return a == nil && b == nil } return a.Error() == b.Error() } func TestUnmarshal(t *testing.T) { for _, tt := range unmarshalTests { t.Run(tt.Name, func(t *testing.T) { in := []byte(tt.in) var scan scanner if err := checkValid(in, &scan); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:40:14 UTC 2024 - 67.6K bytes - Viewed (0)