// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later

#include "keylabel.h"

#include "gtest/gtest.h"

class Tst_KeyLabel : public testing::Test
{
    void SetUp() override;

    void TearDown() override;

public:
    KeyLabel *keyLabel = nullptr;
};

void Tst_KeyLabel::SetUp()
{
    keyLabel = new KeyLabel("test");
}

void Tst_KeyLabel::TearDown()
{
    delete keyLabel;
    keyLabel = nullptr;
}

TEST_F(Tst_KeyLabel, KeyLabel)
{
    EXPECT_NO_THROW(keyLabel->setEnter(true));
}
