Ninja
Classes | Functions
depfile_parser_test.cc File Reference
#include "depfile_parser.h"
#include "test.h"
Include dependency graph for depfile_parser_test.cc:

Go to the source code of this file.

Classes

struct  DepfileParserTest
 

Functions

 TEST_F (DepfileParserTest, Basic)
 
 TEST_F (DepfileParserTest, EarlyNewlineAndWhitespace)
 
 TEST_F (DepfileParserTest, Continuation)
 
 TEST_F (DepfileParserTest, CarriageReturnContinuation)
 
 TEST_F (DepfileParserTest, BackSlashes)
 
 TEST_F (DepfileParserTest, Spaces)
 
 TEST_F (DepfileParserTest, MultipleBackslashes)
 
 TEST_F (DepfileParserTest, Escapes)
 
 TEST_F (DepfileParserTest, EscapedColons)
 
 TEST_F (DepfileParserTest, EscapedTargetColon)
 
 TEST_F (DepfileParserTest, SpecialChars)
 
 TEST_F (DepfileParserTest, UnifyMultipleOutputs)
 
 TEST_F (DepfileParserTest, MultipleDifferentOutputs)
 
 TEST_F (DepfileParserTest, MultipleEmptyRules)
 
 TEST_F (DepfileParserTest, UnifyMultipleRulesLF)
 
 TEST_F (DepfileParserTest, UnifyMultipleRulesCRLF)
 
 TEST_F (DepfileParserTest, UnifyMixedRulesLF)
 
 TEST_F (DepfileParserTest, UnifyMixedRulesCRLF)
 
 TEST_F (DepfileParserTest, IndentedRulesLF)
 
 TEST_F (DepfileParserTest, IndentedRulesCRLF)
 
 TEST_F (DepfileParserTest, TolerateMP)
 
 TEST_F (DepfileParserTest, MultipleRulesTolerateMP)
 
 TEST_F (DepfileParserTest, MultipleRulesDifferentOutputs)
 
 TEST_F (DepfileParserTest, BuggyMP)
 

Function Documentation

◆ TEST_F() [1/24]

TEST_F ( DepfileParserTest  ,
Basic   
)

Definition at line 33 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [2/24]

TEST_F ( DepfileParserTest  ,
EarlyNewlineAndWhitespace   
)

Definition at line 44 of file depfile_parser_test.cc.

References ASSERT_EQ, and EXPECT_TRUE.

◆ TEST_F() [3/24]

TEST_F ( DepfileParserTest  ,
Continuation   
)

Definition at line 53 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [4/24]

TEST_F ( DepfileParserTest  ,
CarriageReturnContinuation   
)

Definition at line 65 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [5/24]

TEST_F ( DepfileParserTest  ,
BackSlashes   
)

Definition at line 77 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [6/24]

TEST_F ( DepfileParserTest  ,
Spaces   
)

Definition at line 93 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [7/24]

TEST_F ( DepfileParserTest  ,
MultipleBackslashes   
)

Definition at line 111 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [8/24]

TEST_F ( DepfileParserTest  ,
Escapes   
)

Definition at line 133 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [9/24]

TEST_F ( DepfileParserTest  ,
EscapedColons   
)

Definition at line 147 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [10/24]

TEST_F ( DepfileParserTest  ,
EscapedTargetColon   
)

Definition at line 165 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [11/24]

TEST_F ( DepfileParserTest  ,
SpecialChars   
)

Definition at line 182 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [12/24]

TEST_F ( DepfileParserTest  ,
UnifyMultipleOutputs   
)

Definition at line 210 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [13/24]

TEST_F ( DepfileParserTest  ,
MultipleDifferentOutputs   
)

Definition at line 222 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [14/24]

TEST_F ( DepfileParserTest  ,
MultipleEmptyRules   
)

Definition at line 235 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [15/24]

TEST_F ( DepfileParserTest  ,
UnifyMultipleRulesLF   
)

Definition at line 246 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [16/24]

TEST_F ( DepfileParserTest  ,
UnifyMultipleRulesCRLF   
)

Definition at line 260 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [17/24]

TEST_F ( DepfileParserTest  ,
UnifyMixedRulesLF   
)

Definition at line 274 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [18/24]

TEST_F ( DepfileParserTest  ,
UnifyMixedRulesCRLF   
)

Definition at line 288 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [19/24]

TEST_F ( DepfileParserTest  ,
IndentedRulesLF   
)

Definition at line 302 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [20/24]

TEST_F ( DepfileParserTest  ,
IndentedRulesCRLF   
)

Definition at line 315 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [21/24]

TEST_F ( DepfileParserTest  ,
TolerateMP   
)

Definition at line 328 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [22/24]

TEST_F ( DepfileParserTest  ,
MultipleRulesTolerateMP   
)

Definition at line 342 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [23/24]

TEST_F ( DepfileParserTest  ,
MultipleRulesDifferentOutputs   
)

Definition at line 358 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [24/24]

TEST_F ( DepfileParserTest  ,
BuggyMP   
)

Definition at line 373 of file depfile_parser_test.cc.

References ASSERT_EQ, and EXPECT_FALSE.