package jsonm import ( "testing" ) type B struct { B string `json:"b"` } func TestUnmarshal(t *testing.T) { var c *B b, _ := Marshal(c) t.Log(b == nil) t.Log(b == nil) } func TestMarshalCkNil(t *testing.T) { var c int64 t.Run("Marshal", func(t *testing.T) { b, _ := Marshal(c) t.Log(b == nil) t.Log(b == nil) }) t.Run("MarshalCkZero", func(t *testing.T) { b, _ := MarshalCkZero(c) t.Log(b == nil) t.Log(b == nil) }) }