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, DuplicateRuleInDifferentSubninjas)
 
 TEST_F (ParserTest, Include)
 
 TEST_F (ParserTest, BrokenInclude)
 
 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 ParserTest::AssertParse().

TEST_F ( ParserTest  ,
Rules   
)
TEST_F ( ParserTest  ,
RuleAttributes   
)

Definition at line 71 of file manifest_parser_test.cc.

References ParserTest::AssertParse().

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   
)

Definition at line 296 of file manifest_parser_test.cc.

References ParserTest::AssertParse().

TEST_F ( ParserTest  ,
Errors   
)

Definition at line 304 of file manifest_parser_test.cc.

References ManifestParser::ParseTest(), and ParserTest::state.

TEST_F ( ParserTest  ,
MissingInput   
)

Definition at line 705 of file manifest_parser_test.cc.

References ManifestParser::Load(), and ParserTest::state.

TEST_F ( ParserTest  ,
MultipleOutputs   
)

Definition at line 713 of file manifest_parser_test.cc.

References ManifestParser::ParseTest(), and ParserTest::state.

TEST_F ( ParserTest  ,
MultipleOutputsWithDeps   
)

Definition at line 723 of file manifest_parser_test.cc.

References ManifestParser::ParseTest(), and ParserTest::state.

TEST_F ( ParserTest  ,
SubNinja   
)
TEST_F ( ParserTest  ,
MissingSubNinja   
)

Definition at line 759 of file manifest_parser_test.cc.

References ManifestParser::ParseTest(), and ParserTest::state.

TEST_F ( ParserTest  ,
DuplicateRuleInDifferentSubninjas   
)
TEST_F ( ParserTest  ,
Include   
)
TEST_F ( ParserTest  ,
BrokenInclude   
)
TEST_F ( ParserTest  ,
Implicit   
)
TEST_F ( ParserTest  ,
OrderOnly   
)
TEST_F ( ParserTest  ,
DefaultDefault   
)
TEST_F ( ParserTest  ,
DefaultStatements   
)
TEST_F ( ParserTest  ,
UTF8   
)

Definition at line 858 of file manifest_parser_test.cc.

References ParserTest::AssertParse().

TEST_F ( ParserTest  ,
CRLF   
)

Definition at line 867 of file manifest_parser_test.cc.

References ManifestParser::ParseTest(), and ParserTest::state.