kubernetes/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json_test.go

type testDecodable

type DecodableSpec

func (d *testDecodable) DeepCopyObject() runtime.Object {}

func (d *testDecodable) DeepCopyInto(out *testDecodable) {}

type testDecodeCoercion

func (d *testDecodeCoercion) DeepCopyObject() runtime.Object {}

func (d *testDecodeCoercion) DeepCopyInto(out *testDecodeCoercion) {}

func TestDecode(t *testing.T) {}

func TestCacheableObject(t *testing.T) {}

type mockCreater

func (c *mockCreater) New(kind schema.GroupVersionKind) (runtime.Object, error) {}

type mockTyper

func (t *mockTyper) ObjectKinds(obj runtime.Object) ([]schema.GroupVersionKind, bool, error) {}

func (t *mockTyper) Recognizes(_ schema.GroupVersionKind) bool {}

type testEncodableDuplicateTag

func (testEncodableDuplicateTag) DeepCopyObject() runtime.Object {}

type testEncodableTagMatchesUntaggedName

func (testEncodableTagMatchesUntaggedName) DeepCopyObject() runtime.Object {}

type staticTextMarshaler

func (staticTextMarshaler) MarshalText() ([]byte, error) {}

type testEncodableMap

func (testEncodableMap[K]) GetObjectKind() schema.ObjectKind {}

func (testEncodableMap[K]) DeepCopyObject() runtime.Object {}

func TestEncode(t *testing.T) {}

// TestRoundtripUnstructuredFloat64 demonstrates that encoding a fractionless float64 value to JSON
// then decoding into interface{} can produce a value with concrete type int64. This is a
// consequence of two specific behaviors. First, there is nothing in the JSON encoding of a
// fractionless float64 value to distinguish it from the JSON encoding of an integer value. Second,
// if, when unmarshaling into interface{}, the decoder encounters a JSON number with no decimal
// point in the input, it produces a value with concrete type int64 as long as the number can be
// precisely represented by an int64.
func TestRoundtripUnstructuredFractionlessFloat64(t *testing.T) {}