MCPcopy Create free account
hub / github.com/apache/trafficserver / fill_test_data

Function fill_test_data

src/tscore/unit_tests/test_arena.cc:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39#include <cstdio>
40
41void
42fill_test_data(char *ptr, int size, int seed)
43{
44 char a = 'a' + (seed % 52);
45
46 for (int i = 0; i < size; i++) {
47 ptr[i] = a;
48 a = (a + 1) % 52;
49 }
50}
51
52TEST_CASE("test arena", "[libts][arena]")
53{

Callers 1

test_arena.ccFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected