Files
thehub/testing/streaming/TestBuffers.h
T
tomFlowee c7192dff41 Add text-limit argument to writeHex
The BufferPool::writeHex() method takes a string-pointer, we add an int
max-number-of-chars to be parsed on that string.
This allows us to not just stop at the first non-hex char, but also
after a set number of characters.

This effectively allows us to use non-zere-terminated strings as
argument too.
2024-10-03 14:07:10 +02:00

51 lines
1.4 KiB
C++

/*
* This file is part of the Flowee project
* Copyright (C) 2018-2024 Tom Zander <tom@flowee.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TestBuffers_H
#define TestBuffers_H
#include <common/TestFloweeBase.h>
class TestBuffers : public TestFloweeBase
{
Q_OBJECT
private slots:
void testBasic();
void testWriteHex();
void testMultiBuffer();
void testBuilder();
void testBuilderReply();
void testParser();
void testStringRefInParser();
void testClear();
void testCMFBasic();
void testCMFBasic2();
void testCMFTypes();
void testParsers();
void benchSerialize();
void testCompare();
void testIndexOf();
void testBounds();
void testConstBufMid();
void testConstBufStartsWith();
void testConstBufEndsWith();
};
#endif