const SplatHeaderTestCase = struct writer_type: enum { fixed, allocating }buf_len: usize = 100When writer_type is .fixed, determines the buffer size. When writer_type is .allocating, determines the initial capacity.
header: []const u8data: []const []const u8splat: u8limit: u8expected_res: union(enum) { written: usize, write_failed }expected_buf_content: []const u8311
312
313
314
315
316
317
318
319
320
321
322const SplatHeaderTestCase = struct {
writer_type: enum { fixed, allocating },
/// When writer_type is .fixed, determines the buffer size.
/// When writer_type is .allocating, determines the initial capacity.
buf_len: usize = 100,
header: []const u8,
data: []const []const u8,
splat: u8,
limit: u8,
expected_res: union(enum) { written: usize, write_failed },
expected_buf_content: []const u8,
}