Debian Codegraph @

tests/dde-calendar-client-test/src/test_widget/test_monthWidget/test_monthwindow.cpp

raw
1 // SPDX-FileCopyrightText: 2019 - 2026 UnionTech Software Technology Co., Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-or-later
4
5 //#include "test_monthwindow.h"
6
7 //#include "../third-party_stub/stub.h"
8 //#include "monthWidget/monthview.h"
9
10 //test_monthWindow::test_monthWindow()
11 //{
12 //}
13
14 //void test_monthWindow::SetUp()
15 //{
16 // m_monthWindow = new CMonthWindow(nullptr);
17 //}
18
19 //void test_monthWindow::TearDown()
20 //{
21 // delete m_monthWindow;
22 // m_monthWindow = nullptr;
23 //}
24
25 //TEST_F(test_monthWindow, setTheMe)
26 //{
27 // m_monthWindow->setTheMe(0);
28 // m_monthWindow->setTheMe(1);
29 // m_monthWindow->setTheMe(2);
30 //}
31
32 //namespace MonthWindow {
33 //void deleteselectschedule_Stub(void *obj)
34 //{
35 // Q_UNUSED(obj)
36 //}
37 //} // namespace MonthWindow
38
39 //TEST_F(test_monthWindow, deleteselectSchedule)
40 //{
41 // Stub stub;
42 // stub.set(ADDR(CMonthView, deleteSelectSchedule), MonthWindow::deleteselectschedule_Stub);
43 // m_monthWindow->deleteselectSchedule();
44 //}
45
46 //TEST_F(test_monthWindow, previousMonth)
47 //{
48 // QDate currentDate = QDate::currentDate();
49 // m_monthWindow->setSelectDate(currentDate);
50 // m_monthWindow->previousMonth();
51 // ASSERT_EQ(m_monthWindow->getSelectDate(), currentDate.addMonths(1));
52 //}
53
54 //TEST_F(test_monthWindow, nextMonth)
55 //{
56 // QDate currentDate = QDate::currentDate();
57 // m_monthWindow->setSelectDate(currentDate);
58 // m_monthWindow->nextMonth();
59 // ASSERT_EQ(m_monthWindow->getSelectDate(), currentDate.addMonths(-1));
60 //}
61
62 //TEST_F(test_monthWindow, slotViewSelectDate)
63 //{
64 // QDate currentDate = QDate::currentDate();
65 // m_monthWindow->slotViewSelectDate(currentDate);
66 //}
67
68 //TEST_F(test_monthWindow, resizeEvent)
69 //{
70 // m_monthWindow->setFixedSize(500, 300);
71 // m_monthWindow->setFixedSize(600, 400);
72 //}
73
74 //TEST_F(test_monthWindow, slottoday)
75 //{
76 // m_monthWindow->slottoday();
77 //}