Add code coverage support. (#378)

This commit is contained in:
Arthur Sonzogni
2022-04-17 15:47:20 +02:00
committed by GitHub
parent b2896aba49
commit 764c24ef40
26 changed files with 206 additions and 96 deletions

View File

@@ -8,14 +8,16 @@
#include "ftxui/component/event.hpp" // for Event, Event::Tab, Event::TabReverse, Event::ArrowDown, Event::ArrowLeft, Event::ArrowRight, Event::ArrowUp
#include "gtest/gtest_pred_impl.h" // for AssertionResult, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, Test, TEST
using namespace ftxui;
namespace ftxui {
namespace {
Component Focusable() {
return Button("", [] {});
}
Component NonFocusable() {
return Container::Horizontal({});
}
} // namespace
TEST(ContainerTest, HorizontalEvent) {
auto container = Container::Horizontal({});
@@ -333,6 +335,8 @@ TEST(ContainerTest, TabFocusable) {
EXPECT_FALSE(c->Focused());
}
} // namespace ftxui
// Copyright 2020 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.