QOwnNotes/tests/unit_tests/testcases/app/test_utilsmisc.h
Patrizio Bekerle 689cdccee9
#3269 test: add filetype detection tests
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
2025-05-05 19:30:49 +02:00

42 lines
1.3 KiB
C++

#ifndef TESTUTILSMISC_H
#define TESTUTILSMISC_H
#include <QObject>
class TestUtilsMisc : public QObject {
Q_OBJECT
private Q_SLOTS:
void initTestCase();
void testRemoveIfStartsWith();
void testRemoveIfEndsWith();
void testPrependIfDoesNotStartWith();
void testAppendIfDoesNotEndWith();
void testStartDetachedProcess();
void testShorten();
void testCycleTextCase();
void testHtmlToMarkdown();
void testParseTaskList();
void testUnescapeHtml();
void testHtmlSpecialChars();
void testToHumanReadableByteSize();
void testTransformEvernoteImportCodeBlock();
void testTransformEvernoteImportCodeBlock2();
void testTransformEvernoteImportRussian();
void testTransformEvernoteImportHyperlinks();
void testGetBaseUrlFromUrlString();
void testCreateAbsolutePathsInHtml();
void testDetectFileFormatTxt();
void testDetectFileFormatJson();
void testDetectFileFormatXml();
void testDetectFileFormatXmlWithoutDeclaration();
void testDetectFileFormatHtml();
void testDetectFileFormatCsv();
void testDetectFileFormatIni();
void testDetectFileFormatNix();
void testDetectFileFormatYaml();
void testDetectFileFormatSql();
void testDetectFileFormatJavaScript();
void testDetectFileFormatEdgeCases();
};
#endif // TESTUTILSMISC_H