|
Ninja
|
Fixture for tests involving Plan. More...

Public Member Functions | |
| void | AddCatRule (State *state) |
| Add a "cat" rule to state. | |
| void | FindWorkSorted (deque< Edge * > *ret, int count) |
| Because FindWork does not return Edges in any sort of predictable order,. | |
| Node * | GetNode (const std::string &path) |
| Short way to get a Node by its path from state_. | |
| void | PrepareForTarget (const char *node, BuildLog *log=NULL) |
| void | TestPoolWithDepthOne (const char *test_case) |
Public Attributes | |
| Plan | plan_ |
| State | state_ |
Fixture for tests involving Plan.
Definition at line 39 of file build_test.cc.
|
inherited |
Add a "cat" rule to state.
Used by some tests; it's otherwise done by the ctor to state_.
Definition at line 89 of file test.cc.
References AssertParse().
Referenced by BuildTest::RebuildTarget(), and StateTestWithBuiltinRules().
|
inline |
Because FindWork does not return Edges in any sort of predictable order,.
Definition at line 45 of file build_test.cc.
References CompareEdgesByOutput::cmp(), and plan_.
|
inherited |
Short way to get a Node by its path from state_.
Definition at line 95 of file test.cc.
References state_.
Referenced by BuildTest::Dirty(), PlanTest::PrepareForTarget(), TestPhonyUseCase(), and PlanTest::TestPoolWithDepthOne().
|
inline |
Definition at line 56 of file build_test.cc.
References StateTestWithBuiltinRules::GetNode(), and plan_.
| void PlanTest::TestPoolWithDepthOne | ( | const char * | test_case | ) |
Definition at line 204 of file build_test.cc.
References AssertParse(), StateTestWithBuiltinRules::GetNode(), Edge::inputs_, Plan::kEdgeSucceeded, Node::MarkDirty(), Edge::outputs_, plan_, and StateTestWithBuiltinRules::state_.
| Plan PlanTest::plan_ |
Definition at line 40 of file build_test.cc.
Referenced by FindWorkSorted(), PrepareForTarget(), and TestPoolWithDepthOne().
|
inherited |
Definition at line 40 of file test.h.
Referenced by BuildTest::BuildTest(), BuildTest::BuildTest(), GetNode(), GraphTest::GraphTest(), BuildTest::SetUp(), StateTestWithBuiltinRules(), TestPhonyUseCase(), and PlanTest::TestPoolWithDepthOne().