MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / TestChunks

Method TestChunks

test/testchunks.cpp:5–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4
5TestChunks::TestChunks(QTextStream &log, QString tName, int size, bool random, int saveFile) : _chunks(nullptr)
6{
7 char hex[] = "0123456789abcdef";
8 srand(0);
9 for (int idx=0; idx < size; idx++)
10 {
11 if (random)
12 _data += char(rand() % 0x100);
13 else
14 _data += hex[idx & 0x0f];
15 _highlighted += char(0);
16 }
17 _copy = _data;
18 _cData.setData(_copy);
19 _chunks.setIODevice(_cData);
20 _tCnt = 0;
21 _log = &log;
22 _tName = tName;
23 _saveFile = saveFile;
24 compare();
25}
26
27void TestChunks::random(int count)
28{

Callers

nothing calls this directly

Calls 2

setDataMethod · 0.80
setIODeviceMethod · 0.80

Tested by

no test coverage detected