Benchmark harness support for STK-REQ-004.
()
| 1942 | |
| 1943 | // Benchmark harness support for STK-REQ-004. |
| 1944 | func (mj *LargePayload) MarshalJSON() ([]byte, error) { |
| 1945 | var buf fflib.Buffer |
| 1946 | if mj == nil { |
| 1947 | buf.WriteString("null") |
| 1948 | return buf.Bytes(), nil |
| 1949 | } |
| 1950 | err := mj.MarshalJSONBuf(&buf) |
| 1951 | if err != nil { |
| 1952 | return nil, err |
| 1953 | } |
| 1954 | return buf.Bytes(), nil |
| 1955 | } |
| 1956 | |
| 1957 | // Benchmark harness support for STK-REQ-004. |
| 1958 | func (mj *LargePayload) MarshalJSONBuf(buf fflib.EncodingBuffer) error { |
nothing calls this directly
no test coverage detected