|
Ninja
|
#include "manifest_parser.h"#include <map>#include <vector>#include "graph.h"#include "state.h"#include "test.h"
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, DuplicateEdgeWithMultipleOutputs) | |
| TEST_F (ParserTest, NoDeadPointerFromDuplicateEdge) | |
| TEST_F (ParserTest, DuplicateEdgeWithMultipleOutputsError) | |
| TEST_F (ParserTest, DuplicateEdgeInIncludedFile) | |
| TEST_F (ParserTest, PhonySelfReferenceIgnored) | |
| TEST_F (ParserTest, PhonySelfReferenceKept) | |
| 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, DuplicateRuleInDifferentSubninjasWithInclude) | |
| TEST_F (ParserTest, Include) | |
| TEST_F (ParserTest, BrokenInclude) | |
| TEST_F (ParserTest, Implicit) | |
| TEST_F (ParserTest, OrderOnly) | |
| TEST_F (ParserTest, ImplicitOutput) | |
| TEST_F (ParserTest, ImplicitOutputEmpty) | |
| TEST_F (ParserTest, ImplicitOutputDupe) | |
| TEST_F (ParserTest, ImplicitOutputDupes) | |
| TEST_F (ParserTest, NoExplicitOutput) | |
| TEST_F (ParserTest, DefaultDefault) | |
| TEST_F (ParserTest, DefaultDefaultCycle) | |
| TEST_F (ParserTest, DefaultStatements) | |
| TEST_F (ParserTest, UTF8) | |
| TEST_F (ParserTest, CRLF) | |
| TEST_F | ( | ParserTest | , |
| Empty | |||
| ) |
Definition at line 37 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, and AssertParse().
| TEST_F | ( | ParserTest | , |
| Rules | |||
| ) |
Definition at line 41 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), Rule::bindings_, and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| RuleAttributes | |||
| ) |
Definition at line 58 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, and AssertParse().
| TEST_F | ( | ParserTest | , |
| IgnoreIndentedComments | |||
| ) |
Definition at line 73 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), Rule::bindings_, EXPECT_EQ, EXPECT_FALSE, and EXPECT_TRUE.
| TEST_F | ( | ParserTest | , |
| IgnoreIndentedBlankLines | |||
| ) |
Definition at line 92 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| ResponseFiles | |||
| ) |
Definition at line 107 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), Rule::bindings_, and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| InNewline | |||
| ) |
Definition at line 126 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), Rule::bindings_, and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| Variables | |||
| ) |
Definition at line 144 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| VariableScope | |||
| ) |
Definition at line 169 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| Continuation | |||
| ) |
Definition at line 186 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), Rule::bindings_, and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| Backslash | |||
| ) |
Definition at line 201 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| Comment | |||
| ) |
Definition at line 210 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| Dollars | |||
| ) |
Definition at line 217 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| EscapeSpaces | |||
| ) |
Definition at line 233 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.
| TEST_F | ( | ParserTest | , |
| CanonicalizeFile | |||
| ) |
Definition at line 246 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, and EXPECT_TRUE.
| TEST_F | ( | ParserTest | , |
| PathVariables | |||
| ) |
Definition at line 280 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, and EXPECT_TRUE.
| TEST_F | ( | ParserTest | , |
| CanonicalizePaths | |||
| ) |
Definition at line 291 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, and EXPECT_TRUE.
| TEST_F | ( | ParserTest | , |
| DuplicateEdgeWithMultipleOutputs | |||
| ) |
Definition at line 331 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, and AssertParse().
| TEST_F | ( | ParserTest | , |
| NoDeadPointerFromDuplicateEdge | |||
| ) |
Definition at line 343 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, and AssertParse().
| TEST_F | ( | ParserTest | , |
| DuplicateEdgeWithMultipleOutputsError | |||
| ) |
Definition at line 354 of file manifest_parser_test.cc.
References ManifestParserOptions::dupe_edge_action_, EXPECT_EQ, EXPECT_FALSE, kDupeEdgeActionError, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| DuplicateEdgeInIncludedFile | |||
| ) |
Definition at line 369 of file manifest_parser_test.cc.
References ManifestParserOptions::dupe_edge_action_, EXPECT_EQ, EXPECT_FALSE, kDupeEdgeActionError, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| PhonySelfReferenceIgnored | |||
| ) |
Definition at line 387 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), Node::in_edge(), and Edge::inputs_.
| TEST_F | ( | ParserTest | , |
| PhonySelfReferenceKept | |||
| ) |
Definition at line 397 of file manifest_parser_test.cc.
References ASSERT_EQ, EXPECT_EQ, EXPECT_TRUE, Node::in_edge(), Edge::inputs_, kPhonyCycleActionError, ManifestParser::ParseTest(), and ManifestParserOptions::phony_cycle_action_.
| TEST_F | ( | ParserTest | , |
| ReservedWords | |||
| ) |
Definition at line 413 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, and AssertParse().
| TEST_F | ( | ParserTest | , |
| Errors | |||
| ) |
Definition at line 421 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_FALSE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| MissingInput | |||
| ) |
Definition at line 839 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_FALSE, and ManifestParser::Load().
| TEST_F | ( | ParserTest | , |
| MultipleOutputs | |||
| ) |
Definition at line 847 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_TRUE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| MultipleOutputsWithDeps | |||
| ) |
Definition at line 857 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_FALSE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| SubNinja | |||
| ) |
Definition at line 868 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.
| TEST_F | ( | ParserTest | , |
| MissingSubNinja | |||
| ) |
Definition at line 893 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_FALSE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| DuplicateRuleInDifferentSubninjas | |||
| ) |
Definition at line 903 of file manifest_parser_test.cc.
References EXPECT_TRUE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| DuplicateRuleInDifferentSubninjasWithInclude | |||
| ) |
Definition at line 914 of file manifest_parser_test.cc.
References EXPECT_TRUE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| Include | |||
| ) |
Definition at line 927 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| BrokenInclude | |||
| ) |
Definition at line 938 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_FALSE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| Implicit | |||
| ) |
Definition at line 949 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), and Edge::is_implicit().
| TEST_F | ( | ParserTest | , |
| OrderOnly | |||
| ) |
Definition at line 959 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), and Edge::is_order_only().
| TEST_F | ( | ParserTest | , |
| ImplicitOutput | |||
| ) |
Definition at line 968 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_TRUE, Edge::is_implicit_out(), and Edge::outputs_.
| TEST_F | ( | ParserTest | , |
| ImplicitOutputEmpty | |||
| ) |
Definition at line 979 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, Edge::is_implicit_out(), and Edge::outputs_.
| TEST_F | ( | ParserTest | , |
| ImplicitOutputDupe | |||
| ) |
Definition at line 990 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, EXPECT_TRUE, Edge::is_implicit_out(), and Edge::outputs_.
| TEST_F | ( | ParserTest | , |
| ImplicitOutputDupes | |||
| ) |
Definition at line 1003 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, Edge::is_implicit_out(), and Edge::outputs_.
| TEST_F | ( | ParserTest | , |
| NoExplicitOutput | |||
| ) |
Definition at line 1014 of file manifest_parser_test.cc.
References EXPECT_TRUE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| DefaultDefault | |||
| ) |
Definition at line 1023 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| DefaultDefaultCycle | |||
| ) |
Definition at line 1036 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| DefaultStatements | |||
| ) |
Definition at line 1046 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| UTF8 | |||
| ) |
Definition at line 1066 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, and AssertParse().
| TEST_F | ( | ParserTest | , |
| CRLF | |||
| ) |
Definition at line 1073 of file manifest_parser_test.cc.
References EXPECT_TRUE, and ManifestParser::ParseTest().
1.8.14