- test_item.cpp: 3 tests for Item class - test_timelineview.cpp: 3 tests for TimelineView class - test_timelinewidget.cpp: 3 tests for TimelineWidget class - test_timelineindicator.cpp: 3 tests for TimelineIndicator class Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
39 lines
710 B
C++
39 lines
710 B
C++
#include "Lts/Common/LtsTimelineClassic/Item.h"
|
|
|
|
#include <QWidget>
|
|
#include <gtest/gtest.h>
|
|
|
|
namespace LtsTimelineClassic
|
|
{
|
|
|
|
class ItemTest : public ::testing::Test
|
|
{
|
|
protected:
|
|
void SetUp() override {}
|
|
|
|
void TearDown() override {}
|
|
};
|
|
|
|
TEST(ItemTest, HeaderCompilesAndLinks)
|
|
{
|
|
// Verify header compiles without errors
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
TEST(ItemTest, CanInstantiateItem)
|
|
{
|
|
// Basic instantiation test
|
|
QWidget parent;
|
|
Item item(&parent);
|
|
EXPECT_NO_THROW(item.update());
|
|
}
|
|
|
|
TEST(ItemTest, ItemHasValidState)
|
|
{
|
|
QWidget parent;
|
|
Item item(&parent);
|
|
// Test basic properties
|
|
EXPECT_NO_THROW(item.setGeometry(0, 0, 100, 50));
|
|
}
|
|
|
|
} // namespace LtsTimelineClassic
|