Ninja
dyndep_parser_test.cc File Reference
#include "dyndep_parser.h"
#include <map>
#include <vector>
#include "dyndep.h"
#include "graph.h"
#include "state.h"
#include "test.h"
Include dependency graph for dyndep_parser_test.cc:

Go to the source code of this file.

Classes

struct  DyndepParserTest
 

Functions

 TEST_F (DyndepParserTest, BadBinding)
 
 TEST_F (DyndepParserTest, BlankLineVersion)
 
 TEST_F (DyndepParserTest, BlankLineVersionCRLF)
 
 TEST_F (DyndepParserTest, BuildEOF)
 
 TEST_F (DyndepParserTest, CommentVersion)
 
 TEST_F (DyndepParserTest, CommentVersionCRLF)
 
 TEST_F (DyndepParserTest, DuplicateVersion)
 
 TEST_F (DyndepParserTest, Empty)
 
 TEST_F (DyndepParserTest, EmptyImplicit)
 
 TEST_F (DyndepParserTest, ExplicitIn)
 
 TEST_F (DyndepParserTest, ExplicitOut)
 
 TEST_F (DyndepParserTest, ImplicitIn)
 
 TEST_F (DyndepParserTest, ImplicitIns)
 
 TEST_F (DyndepParserTest, ImplicitInsAndOuts)
 
 TEST_F (DyndepParserTest, ImplicitOut)
 
 TEST_F (DyndepParserTest, ImplicitOuts)
 
 TEST_F (DyndepParserTest, MissingVersionBuild)
 
 TEST_F (DyndepParserTest, MissingVersionOtherVar)
 
 TEST_F (DyndepParserTest, MultipleEdges)
 
 TEST_F (DyndepParserTest, NoImplicit)
 
 TEST_F (DyndepParserTest, NoOutColon)
 
 TEST_F (DyndepParserTest, NoOutEOF)
 
 TEST_F (DyndepParserTest, OrderOnlyIn)
 
 TEST_F (DyndepParserTest, OtherOutput)
 
 TEST_F (DyndepParserTest, OutBadRule)
 
 TEST_F (DyndepParserTest, OutDuplicate)
 
 TEST_F (DyndepParserTest, OutDuplicateThroughOther)
 
 TEST_F (DyndepParserTest, OutEOF)
 
 TEST_F (DyndepParserTest, OutNoRule)
 
 TEST_F (DyndepParserTest, OutNoStatement)
 
 TEST_F (DyndepParserTest, Restat)
 
 TEST_F (DyndepParserTest, RestatTwice)
 
 TEST_F (DyndepParserTest, UnexpectedEqual)
 
 TEST_F (DyndepParserTest, UnexpectedIndent)
 
 TEST_F (DyndepParserTest, UnsupportedVersion0)
 
 TEST_F (DyndepParserTest, UnsupportedVersion1_1)
 
 TEST_F (DyndepParserTest, Version1)
 
 TEST_F (DyndepParserTest, Version1_0)
 
 TEST_F (DyndepParserTest, Version1_0Extra)
 
 TEST_F (DyndepParserTest, Version1Extra)
 
 TEST_F (DyndepParserTest, VersionCRLF)
 
 TEST_F (DyndepParserTest, VersionUnexpectedEOF)
 

Function Documentation

◆ TEST_F() [1/42]

TEST_F ( DyndepParserTest ,
BadBinding  )

Definition at line 332 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [2/42]

TEST_F ( DyndepParserTest ,
BlankLineVersion  )

Definition at line 82 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [3/42]

TEST_F ( DyndepParserTest ,
BlankLineVersionCRLF  )

Definition at line 99 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [4/42]

TEST_F ( DyndepParserTest ,
BuildEOF  )

Definition at line 284 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [5/42]

TEST_F ( DyndepParserTest ,
CommentVersion  )

Definition at line 76 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [6/42]

TEST_F ( DyndepParserTest ,
CommentVersionCRLF  )

Definition at line 93 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [7/42]

TEST_F ( DyndepParserTest ,
DuplicateVersion  )

Definition at line 138 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [8/42]

TEST_F ( DyndepParserTest ,
Empty  )

Definition at line 47 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [9/42]

TEST_F ( DyndepParserTest ,
EmptyImplicit  )

Definition at line 370 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [10/42]

TEST_F ( DyndepParserTest ,
ExplicitIn  )

Definition at line 308 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [11/42]

TEST_F ( DyndepParserTest ,
ExplicitOut  )

Definition at line 296 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [12/42]

TEST_F ( DyndepParserTest ,
ImplicitIn  )

Definition at line 383 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [13/42]

TEST_F ( DyndepParserTest ,
ImplicitIns  )

Definition at line 397 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [14/42]

TEST_F ( DyndepParserTest ,
ImplicitInsAndOuts  )

Definition at line 441 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [15/42]

TEST_F ( DyndepParserTest ,
ImplicitOut  )

Definition at line 412 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [16/42]

TEST_F ( DyndepParserTest ,
ImplicitOuts  )

Definition at line 426 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [17/42]

TEST_F ( DyndepParserTest ,
MissingVersionBuild  )

Definition at line 159 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [18/42]

TEST_F ( DyndepParserTest ,
MissingVersionOtherVar  )

Definition at line 148 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [19/42]

TEST_F ( DyndepParserTest ,
MultipleEdges  )

Definition at line 485 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [20/42]

TEST_F ( DyndepParserTest ,
NoImplicit  )

Definition at line 357 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [21/42]

TEST_F ( DyndepParserTest ,
NoOutColon  )

Definition at line 224 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [22/42]

TEST_F ( DyndepParserTest ,
NoOutEOF  )

Definition at line 212 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [23/42]

TEST_F ( DyndepParserTest ,
OrderOnlyIn  )

Definition at line 320 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [24/42]

TEST_F ( DyndepParserTest ,
OtherOutput  )

Definition at line 472 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [25/42]

TEST_F ( DyndepParserTest ,
OutBadRule  )

Definition at line 272 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [26/42]

TEST_F ( DyndepParserTest ,
OutDuplicate  )

Definition at line 186 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [27/42]

TEST_F ( DyndepParserTest ,
OutDuplicateThroughOther  )

Definition at line 199 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [28/42]

TEST_F ( DyndepParserTest ,
OutEOF  )

Definition at line 248 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [29/42]

TEST_F ( DyndepParserTest ,
OutNoRule  )

Definition at line 260 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [30/42]

TEST_F ( DyndepParserTest ,
OutNoStatement  )

Definition at line 236 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [31/42]

TEST_F ( DyndepParserTest ,
Restat  )

Definition at line 458 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [32/42]

TEST_F ( DyndepParserTest ,
RestatTwice  )

Definition at line 345 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [33/42]

TEST_F ( DyndepParserTest ,
UnexpectedEqual  )

Definition at line 168 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [34/42]

TEST_F ( DyndepParserTest ,
UnexpectedIndent  )

Definition at line 177 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [35/42]

TEST_F ( DyndepParserTest ,
UnsupportedVersion0  )

Definition at line 116 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [36/42]

TEST_F ( DyndepParserTest ,
UnsupportedVersion1_1  )

Definition at line 127 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().

◆ TEST_F() [37/42]

TEST_F ( DyndepParserTest ,
Version1  )

Definition at line 56 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [38/42]

TEST_F ( DyndepParserTest ,
Version1_0  )

Definition at line 66 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [39/42]

TEST_F ( DyndepParserTest ,
Version1_0Extra  )

Definition at line 71 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [40/42]

TEST_F ( DyndepParserTest ,
Version1Extra  )

Definition at line 61 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [41/42]

TEST_F ( DyndepParserTest ,
VersionCRLF  )

Definition at line 88 of file dyndep_parser_test.cc.

References AssertParse().

◆ TEST_F() [42/42]

TEST_F ( DyndepParserTest ,
VersionUnexpectedEOF  )

Definition at line 105 of file dyndep_parser_test.cc.

References DyndepParser::ParseTest().