Ninja
Classes | Functions
manifest_parser_test.cc File Reference
#include "manifest_parser.h"
#include <map>
#include <vector>
#include <gtest/gtest.h>
#include "graph.h"
#include "state.h"
Include dependency graph for manifest_parser_test.cc:

Go to the source code of this file.

Classes

struct  ParserTest
 

Functions

 TEST_F (ParserTest, Empty)
 
 TEST_F (ParserTest, Rules)
 
 TEST_F (ParserTest, RuleAttributes)
 
 TEST_F (ParserTest, IgnoreIndentedComments)
 
 TEST_F (ParserTest, IgnoreIndentedBlankLines)
 
 TEST_F (ParserTest, ResponseFiles)
 
 TEST_F (ParserTest, InNewline)
 
 TEST_F (ParserTest, Variables)
 
 TEST_F (ParserTest, VariableScope)
 
 TEST_F (ParserTest, Continuation)
 
 TEST_F (ParserTest, Backslash)
 
 TEST_F (ParserTest, Comment)
 
 TEST_F (ParserTest, Dollars)
 
 TEST_F (ParserTest, EscapeSpaces)
 
 TEST_F (ParserTest, CanonicalizeFile)
 
 TEST_F (ParserTest, PathVariables)
 
 TEST_F (ParserTest, CanonicalizePaths)
 
 TEST_F (ParserTest, ReservedWords)
 
 TEST_F (ParserTest, Errors)
 
 TEST_F (ParserTest, MissingInput)
 
 TEST_F (ParserTest, MultipleOutputs)
 
 TEST_F (ParserTest, MultipleOutputsWithDeps)
 
 TEST_F (ParserTest, SubNinja)
 
 TEST_F (ParserTest, MissingSubNinja)
 
 TEST_F (ParserTest, Include)
 
 TEST_F (ParserTest, Implicit)
 
 TEST_F (ParserTest, OrderOnly)
 
 TEST_F (ParserTest, DefaultDefault)
 
 TEST_F (ParserTest, DefaultStatements)
 
 TEST_F (ParserTest, UTF8)
 
 TEST_F (ParserTest, CRLF)
 

Function Documentation

TEST_F ( ParserTest  ,
Empty   
)

Definition at line 50 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
Rules   
)

Definition at line 54 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
RuleAttributes   
)

Definition at line 71 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
IgnoreIndentedComments   
)

Definition at line 86 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
IgnoreIndentedBlankLines   
)

Definition at line 105 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
ResponseFiles   
)

Definition at line 120 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
InNewline   
)

Definition at line 139 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
Variables   
)

Definition at line 157 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
VariableScope   
)

Definition at line 182 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
Continuation   
)

Definition at line 199 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
Backslash   
)

Definition at line 214 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
Comment   
)

Definition at line 223 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
Dollars   
)

Definition at line 230 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
EscapeSpaces   
)

Definition at line 242 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
CanonicalizeFile   
)

Definition at line 255 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
PathVariables   
)

Definition at line 269 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
CanonicalizePaths   
)

Definition at line 280 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
ReservedWords   
)

Definition at line 292 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
Errors   
)

Definition at line 300 of file manifest_parser_test.cc.

References ManifestParser::ParseTest().

TEST_F ( ParserTest  ,
MissingInput   
)

Definition at line 588 of file manifest_parser_test.cc.

References ManifestParser::Load().

TEST_F ( ParserTest  ,
MultipleOutputs   
)

Definition at line 596 of file manifest_parser_test.cc.

References ManifestParser::ParseTest().

TEST_F ( ParserTest  ,
MultipleOutputsWithDeps   
)

Definition at line 606 of file manifest_parser_test.cc.

References ManifestParser::ParseTest().

TEST_F ( ParserTest  ,
SubNinja   
)

Definition at line 617 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
MissingSubNinja   
)

Definition at line 642 of file manifest_parser_test.cc.

References ManifestParser::ParseTest().

TEST_F ( ParserTest  ,
Include   
)

Definition at line 652 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
Implicit   
)

Definition at line 663 of file manifest_parser_test.cc.

References AssertParse(), and Edge::is_implicit().

TEST_F ( ParserTest  ,
OrderOnly   
)

Definition at line 673 of file manifest_parser_test.cc.

References AssertParse(), and Edge::is_order_only().

TEST_F ( ParserTest  ,
DefaultDefault   
)

Definition at line 682 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
DefaultStatements   
)

Definition at line 695 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
UTF8   
)

Definition at line 715 of file manifest_parser_test.cc.

References AssertParse().

TEST_F ( ParserTest  ,
CRLF   
)

Definition at line 724 of file manifest_parser_test.cc.

References ManifestParser::ParseTest().