MCPcopy Create free account
hub / github.com/git/git / make_inline2

Function make_inline2

t/helper/test-json-writer.c:259–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257static struct json_writer inline2 = JSON_WRITER_INIT;
258
259static void make_inline2(int pretty)
260{
261 jw_array_begin(&inline2, pretty);
262 {
263 jw_array_inline_begin_array(&inline2);
264 {
265 jw_array_intmax(&inline2, 1);
266 jw_array_intmax(&inline2, 2);
267 }
268 jw_end(&inline2);
269 jw_array_inline_begin_array(&inline2);
270 {
271 jw_array_intmax(&inline2, 3);
272 jw_array_intmax(&inline2, 4);
273 }
274 jw_end(&inline2);
275 jw_array_inline_begin_object(&inline2);
276 {
277 jw_object_string(&inline2, "a", "abc");
278 }
279 jw_end(&inline2);
280 }
281 jw_end(&inline2);
282}
283
284/*
285 * When super is compact, we expect subs to be compacted (even if originally

Callers

nothing calls this directly

Calls 6

jw_array_beginFunction · 0.85
jw_array_intmaxFunction · 0.85
jw_endFunction · 0.85
jw_object_stringFunction · 0.85

Tested by

no test coverage detected