tesseract v5.3.3.20231005
googletest-color-test_.cc File Reference
#include <stdio.h>
#include "gtest/gtest.h"
#include "src/gtest-internal-inl.h"

Go to the source code of this file.

Functions

 TEST (GTestColorTest, Dummy)
 
int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 49 of file googletest-color-test_.cc.

49 {
50 testing::InitGoogleTest(&argc, argv);
51
52 if (ShouldUseColor(true)) {
53 // Google Test decides to use colors in the output (assuming it
54 // goes to a TTY).
55 printf("YES\n");
56 return 1;
57 } else {
58 // Google Test decides not to use colors in the output.
59 printf("NO\n");
60 return 0;
61 }
62}
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
Definition: gtest.cc:6660
bool ShouldUseColor(bool stdout_is_tty)
Definition: gtest.cc:3234

◆ TEST()

TEST ( GTestColorTest  ,
Dummy   
)

Definition at line 46 of file googletest-color-test_.cc.

46 {
47}