(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestConversionJSONWithError(t *testing.T) { |
| 36 | o := objx.MSI() |
| 37 | o["test"] = func() {} |
| 38 | |
| 39 | assert.Panics(t, func() { |
| 40 | o.MustJSON() |
| 41 | }) |
| 42 | |
| 43 | _, err := o.JSON() |
| 44 | |
| 45 | assert.Error(t, err) |
| 46 | } |
| 47 | |
| 48 | func TestConversionBase64(t *testing.T) { |
| 49 | o := objx.Map{"name": "Mat"} |