MCPcopy Create free account
hub / github.com/buger/jsonparser / MarshalJSON

Method MarshalJSON

benchmark/benchmark_ffjson.go:209–220  ·  view source on GitHub ↗

Benchmark harness support for STK-REQ-004.

()

Source from the content-addressed store, hash-verified

207
208// Benchmark harness support for STK-REQ-004.
209func (mj *CBGithub) MarshalJSON() ([]byte, error) {
210 var buf fflib.Buffer
211 if mj == nil {
212 buf.WriteString("null")
213 return buf.Bytes(), nil
214 }
215 err := mj.MarshalJSONBuf(&buf)
216 if err != nil {
217 return nil, err
218 }
219 return buf.Bytes(), nil
220}
221
222// Benchmark harness support for STK-REQ-004.
223func (mj *CBGithub) MarshalJSONBuf(buf fflib.EncodingBuffer) error {

Callers

nothing calls this directly

Calls 1

MarshalJSONBufMethod · 0.95

Tested by

no test coverage detected