File indexing completed on 2025-04-20 03:34:16
0001 /* 0002 File : XYCurveTest.h 0003 Project : LabPlot 0004 Description : Tests for XYCurve 0005 -------------------------------------------------------------------- 0006 SPDX-FileCopyrightText: 2021 Martin Marmsoler <martin.marmsoler@gmail.com> 0007 0008 SPDX-License-Identifier: GPL-2.0-or-later 0009 */ 0010 0011 #ifndef XYCURVETEST_H 0012 #define XYCURVETEST_H 0013 0014 #include "../../CommonTest.h" 0015 0016 class XYCurveTest : public CommonTest { 0017 Q_OBJECT 0018 0019 private Q_SLOTS: 0020 0021 void addUniqueLineTest01(); 0022 0023 // lineSkipGaps = false 0024 void updateLinesNoGapDirectConnection(); 0025 void updateLinesNoGapStartHorizontal(); 0026 void updateLinesNoGapStartVertical(); 0027 void updateLinesNoGapMidPointHorizontal(); 0028 void updateLinesNoGapMidPointVertical(); 0029 void updateLinesNoGapSegments2(); 0030 void updateLinesNoGapSegments3(); 0031 0032 // lineSkipGaps = false 0033 void updateLinesNoGapDirectConnectionLastVertical(); 0034 void updateLinesNoGapStartHorizontalLastVertical(); 0035 void updateLinesNoGapStartVerticalLastVertical(); 0036 void updateLinesNoGapMidPointHorizontalLastVertical(); 0037 void updateLinesNoGapMidPointVerticalLastVertical(); 0038 void updateLinesNoGapSegments2LastVertical(); 0039 void updateLinesNoGapSegments3LastVertical(); 0040 0041 // lineSkipGaps = true 0042 void updateLinesWithGapLineSkipDirectConnection(); 0043 void updateLinesWithGapLineSkipDirectConnection2(); 0044 void updateLinesWithGapLineSkipStartHorizontal(); 0045 void updateLinesWithGapLineSkipStartVertical(); 0046 void updateLinesWithGapLineSkipMidPointHorizontal(); 0047 void updateLinesWithGapLineSkipMidPointVertical(); 0048 void updateLinesWithGapLineSkipSegments2(); 0049 void updateLinesWithGapLineSkipSegments3(); 0050 0051 // lineSkipGaps = false 0052 void updateLinesWithGapDirectConnection(); 0053 void updateLinesWithGapStartHorizontal(); 0054 void updateLinesWithGapStartVertical(); 0055 void updateLinesWithGapMidPointHorizontal(); 0056 void updateLinesWithGapMidPointVertical(); 0057 void updateLinesWithGapSegments2(); 0058 void updateLinesWithGapSegments3(); 0059 0060 // Nonlinear 0061 void updateLinesLog10(); 0062 0063 // Hover XYCurve 0064 void hooverCurveIntegerEndingZeros(); 0065 }; 0066 0067 #endif // XYCURVETEST_H