(t *testing.T)
| 116 | } |
| 117 | |
| 118 | func TestStringJsonMarshal(t *testing.T) { |
| 119 | inputs := []string{ |
| 120 | "", |
| 121 | "0", |
| 122 | "true", |
| 123 | "1.909045927350", |
| 124 | "nil", |
| 125 | "null", |
| 126 | "<&>", |
| 127 | `quoted"str"ing`, |
| 128 | } |
| 129 | |
| 130 | for _, input := range inputs { |
| 131 | gm, err := json.Marshal(input) |
| 132 | require.NoError(t, err) |
| 133 | |
| 134 | sm := stringJsonMarshal(input) |
| 135 | |
| 136 | require.Equal(t, gm, sm) |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | func TestFastJsonNode(t *testing.T) { |
| 141 | attrId := uint16(20) |
nothing calls this directly
no test coverage detected