Debian Codegraph @

tests/dde-calendar-client-test/src/test_view/test_graphicsItem/test_cmonthdayitem.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_cmonthdayitem.h"
6 #include <QPainter>
7 #include <QStyleOptionGraphicsItem>
8
9 //test_cmonthdayitem::test_cmonthdayitem()
10 //{
11
12 //}
13
14 //TEST_F(test_cmonthdayitem, paint_01)
15 //{
16 // mItem->m_isFocus = true;
17 // QPainter painter;
18 // QStyleOptionGraphicsItem item;
19 // mItem->paint(&painter, &item);
20 //}
21
22 //TEST_F(test_cmonthdayitem, paint_02)
23 //{
24 // CMonthDayItem::m_LunarVisible = true;
25 // QPainter painter;
26 // QStyleOptionGraphicsItem item;
27 // mItem->paint(&painter, &item);
28 //}
29
30 //TEST_F(test_cmonthdayitem, paint_03)
31 //{
32 // CMonthDayItem::m_LunarVisible = true;
33 // QPainter painter;
34 // QStyleOptionGraphicsItem item;
35 // mItem->setStatus(CMonthDayItem::H_REST);
36 // EXPECT_EQ(mItem->m_DayStatus, CMonthDayItem::H_REST);
37 // mItem->paint(&painter, &item);
38 //}
39
40 //TEST_F(test_cmonthdayitem, paint_04)
41 //{
42 // CMonthDayItem::m_LunarVisible = true;
43 // QPainter painter;
44 // QStyleOptionGraphicsItem item;
45 // mItem->setStatus(CMonthDayItem::H_WORK);
46 // EXPECT_EQ(mItem->m_DayStatus, CMonthDayItem::H_WORK);
47 // mItem->paint(&painter, &item);
48 //}