Ninja
Functions
util_test.cc File Reference
#include "util.h"
#include "test.h"
Include dependency graph for util_test.cc:

Go to the source code of this file.

Functions

 TEST (CanonicalizePath, PathSamples)
 
 TEST (CanonicalizePath, EmptyResult)
 
 TEST (CanonicalizePath, UpDir)
 
 TEST (CanonicalizePath, AbsolutePath)
 
 TEST (CanonicalizePath, NotNullTerminated)
 
 TEST (PathEscaping, TortureTest)
 
 TEST (PathEscaping, SensiblePathsAreNotNeedlesslyEscaped)
 
 TEST (PathEscaping, SensibleWin32PathsAreNotNeedlesslyEscaped)
 
 TEST (StripAnsiEscapeCodes, EscapeAtEnd)
 
 TEST (StripAnsiEscapeCodes, StripColors)
 
 TEST (ElideMiddle, NothingToElide)
 
 TEST (ElideMiddle, ElideInTheMiddle)
 

Function Documentation

TEST ( CanonicalizePath  ,
PathSamples   
)

Definition at line 28 of file util_test.cc.

References CanonicalizePath(), EXPECT_EQ, EXPECT_FALSE, and EXPECT_TRUE.

TEST ( CanonicalizePath  ,
EmptyResult   
)

Definition at line 291 of file util_test.cc.

References CanonicalizePath(), EXPECT_EQ, and EXPECT_FALSE.

TEST ( CanonicalizePath  ,
UpDir   
)

Definition at line 307 of file util_test.cc.

References CanonicalizePath(), EXPECT_EQ, and EXPECT_TRUE.

TEST ( CanonicalizePath  ,
AbsolutePath   
)

Definition at line 318 of file util_test.cc.

References CanonicalizePath(), EXPECT_EQ, and EXPECT_TRUE.

TEST ( CanonicalizePath  ,
NotNullTerminated   
)

Definition at line 325 of file util_test.cc.

References CanonicalizePath(), EXPECT_EQ, and EXPECT_TRUE.

TEST ( PathEscaping  ,
TortureTest   
)

Definition at line 344 of file util_test.cc.

References EXPECT_EQ, GetShellEscapedString(), and GetWin32EscapedString().

TEST ( PathEscaping  ,
SensiblePathsAreNotNeedlesslyEscaped   
)

Definition at line 355 of file util_test.cc.

References EXPECT_EQ, GetShellEscapedString(), and GetWin32EscapedString().

TEST ( PathEscaping  ,
SensibleWin32PathsAreNotNeedlesslyEscaped   
)

Definition at line 367 of file util_test.cc.

References EXPECT_EQ, and GetWin32EscapedString().

TEST ( StripAnsiEscapeCodes  ,
EscapeAtEnd   
)

Definition at line 375 of file util_test.cc.

References EXPECT_EQ, and StripAnsiEscapeCodes().

TEST ( StripAnsiEscapeCodes  ,
StripColors   
)

Definition at line 383 of file util_test.cc.

References EXPECT_EQ, and StripAnsiEscapeCodes().

TEST ( ElideMiddle  ,
NothingToElide   
)

Definition at line 392 of file util_test.cc.

References ElideMiddle(), and EXPECT_EQ.

TEST ( ElideMiddle  ,
ElideInTheMiddle   
)

Definition at line 397 of file util_test.cc.

References ElideMiddle(), and EXPECT_EQ.