/*
* Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd.
*
* Author:     leilong  <leilong@uniontech.com>
*
* Maintainer: leilong  <leilong@uniontech.com>
*
* 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
* 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/>.
*/
#include "test_cscheduleitem.h"
#include <QPainter>

//test_cscheduleitem::test_cscheduleitem()
//{

//}

//TEST_F(test_cscheduleitem, setData_01)
//{
//    mItem->setData(ScheduleDataInfo(), QDate(), 2);
//    EXPECT_EQ(mItem->m_totalNum, 2);
//}

//TEST_F(test_cscheduleitem, hasSelectSchedule_01)
//{
//    ScheduleDataInfo info;
//    mItem->setData(info, QDate(), 2);
//    EXPECT_TRUE(mItem->hasSelectSchedule(info));
//}

//TEST_F(test_cscheduleitem, splitTexte_01)
//{
//    QFont font;
//    QStringList strList;
//    QFontMetrics metrics(font);
//    ScheduleDataInfo info;
//    mItem->splitText(font, 20, 10, "123", strList, metrics);
//}

//TEST_F(test_cscheduleitem, paintBackground_01)
//{
//    QPainter painter;
//    QRectF rect;
//    mItem->m_vHoverflag = true;
//    mItem->m_vSelectflag = false;
//    mItem->paintBackground(&painter, rect);
//}

//TEST_F(test_cscheduleitem, paintBackground_02)
//{
//    QPainter painter;
//    QRectF rect;
//    mItem->m_vHoverflag = true;
//    mItem->m_vSelectflag = true;
//    mItem->paintBackground(&painter, rect);
//}
