mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-10-01 17:29:07 +08:00
Add code coverage support. (#378)
This commit is contained in:
@@ -33,7 +33,7 @@ TEST(HBoxTest, NoFlex_NoFlex_NoFlex) {
|
||||
"012abcABC ", //
|
||||
"012abcABC ", //
|
||||
};
|
||||
for (int i = 0; i < expectations.size(); ++i) {
|
||||
for (size_t i = 0; i < expectations.size(); ++i) {
|
||||
Screen screen(i, 1);
|
||||
Render(screen, root);
|
||||
EXPECT_EQ(expectations[i], screen.ToString());
|
||||
@@ -61,7 +61,7 @@ TEST(HBoxTest, FlexGrow_NoFlex_NoFlex) {
|
||||
"012 abcABC", //
|
||||
"012 abcABC", //
|
||||
};
|
||||
for (int i = 0; i < expectations.size(); ++i) {
|
||||
for (size_t i = 0; i < expectations.size(); ++i) {
|
||||
Screen screen(i, 1);
|
||||
Render(screen, root);
|
||||
EXPECT_EQ(expectations[i], screen.ToString());
|
||||
@@ -89,7 +89,7 @@ TEST(HBoxTest, NoFlex_FlexGrow_NoFlex) {
|
||||
"012abc ABC", //
|
||||
"012abc ABC", //
|
||||
};
|
||||
for (int i = 0; i < expectations.size(); ++i) {
|
||||
for (size_t i = 0; i < expectations.size(); ++i) {
|
||||
Screen screen(i, 1);
|
||||
Render(screen, root);
|
||||
EXPECT_EQ(expectations[i], screen.ToString());
|
||||
@@ -117,7 +117,7 @@ TEST(HBoxTest, NoFlex_NoFlex_FlexGrow) {
|
||||
"012abcABC ", //
|
||||
"012abcABC ", //
|
||||
};
|
||||
for (int i = 0; i < expectations.size(); ++i) {
|
||||
for (size_t i = 0; i < expectations.size(); ++i) {
|
||||
Screen screen(i, 1);
|
||||
Render(screen, root);
|
||||
EXPECT_EQ(expectations[i], screen.ToString());
|
||||
@@ -147,7 +147,7 @@ TEST(HBoxTest, FlexGrow_NoFlex_FlexGrow) {
|
||||
"012 abcABC ", //
|
||||
"012 abcABC ", //
|
||||
};
|
||||
for (int i = 0; i < expectations.size(); ++i) {
|
||||
for (size_t i = 0; i < expectations.size(); ++i) {
|
||||
Screen screen(i, 1);
|
||||
Render(screen, root);
|
||||
EXPECT_EQ(expectations[i], screen.ToString());
|
||||
@@ -179,7 +179,7 @@ TEST(HBoxTest, FlexGrow_FlexGrow_FlexGrow) {
|
||||
"012 abc ABC ", //
|
||||
"012 abc ABC ", //
|
||||
};
|
||||
for (int i = 0; i < expectations.size(); ++i) {
|
||||
for (size_t i = 0; i < expectations.size(); ++i) {
|
||||
Screen screen(i, 1);
|
||||
Render(screen, root);
|
||||
EXPECT_EQ(expectations[i], screen.ToString());
|
||||
@@ -209,7 +209,7 @@ TEST(HBoxTest, FlexShrink_NoFlex_NoFlex) {
|
||||
"012abcABC ", //
|
||||
"012abcABC ", //
|
||||
};
|
||||
for (int i = 0; i < expectations.size(); ++i) {
|
||||
for (size_t i = 0; i < expectations.size(); ++i) {
|
||||
Screen screen(i, 1);
|
||||
Render(screen, root);
|
||||
EXPECT_EQ(expectations[i], screen.ToString());
|
||||
@@ -237,7 +237,7 @@ TEST(HBoxTest, NoFlex_FlexShrink_NoFlex) {
|
||||
"012abcABC ", //
|
||||
"012abcABC ", //
|
||||
};
|
||||
for (int i = 0; i < expectations.size(); ++i) {
|
||||
for (size_t i = 0; i < expectations.size(); ++i) {
|
||||
Screen screen(i, 1);
|
||||
Render(screen, root);
|
||||
EXPECT_EQ(expectations[i], screen.ToString());
|
||||
@@ -265,7 +265,7 @@ TEST(HBoxTest, NoFlex_NoFlex_FlexShrink) {
|
||||
"012abcABC ", //
|
||||
"012abcABC ", //
|
||||
};
|
||||
for (int i = 0; i < expectations.size(); ++i) {
|
||||
for (size_t i = 0; i < expectations.size(); ++i) {
|
||||
Screen screen(i, 1);
|
||||
Render(screen, root);
|
||||
EXPECT_EQ(expectations[i], screen.ToString());
|
||||
@@ -292,7 +292,7 @@ TEST(HBoxTest, FlexShrink_NoFlex_FlexShrink) {
|
||||
"012abcABC", //
|
||||
"012abcABC ", //
|
||||
};
|
||||
for (int i = 0; i < expectations.size(); ++i) {
|
||||
for (size_t i = 0; i < expectations.size(); ++i) {
|
||||
Screen screen(i, 1);
|
||||
Render(screen, root);
|
||||
EXPECT_EQ(expectations[i], screen.ToString());
|
||||
@@ -321,7 +321,7 @@ TEST(HBoxTest, FlexShrink_FlexShrink_FlexShrink) {
|
||||
"012abcABC ", //
|
||||
"012abcABC ", //
|
||||
};
|
||||
for (int i = 0; i < expectations.size(); ++i) {
|
||||
for (size_t i = 0; i < expectations.size(); ++i) {
|
||||
Screen screen(i, 1);
|
||||
Render(screen, root);
|
||||
EXPECT_EQ(expectations[i], screen.ToString());
|
||||
@@ -350,7 +350,7 @@ TEST(HBoxTest, FlexGrow_NoFlex_FlewShrink) {
|
||||
"012 abcABC", //
|
||||
"012 abcABC", //
|
||||
};
|
||||
for (int i = 0; i < expectations.size(); ++i) {
|
||||
for (size_t i = 0; i < expectations.size(); ++i) {
|
||||
Screen screen(i, 1);
|
||||
Render(screen, root);
|
||||
EXPECT_EQ(expectations[i], screen.ToString());
|
||||
|
Reference in New Issue
Block a user