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

Public Member Functions | |
| void | AddCatRule (State *state) |
| Add a "cat" rule to state. More... | |
| void | FindWorkSorted (deque< Edge * > *ret, int count) |
| Because FindWork does not return Edges in any sort of predictable order,. More... | |
| Node * | GetNode (const std::string &path) |
| Short way to get a Node by its path from state_. More... | |
| 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().
|
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(), Plan::FindWork(), and Plan::more_to_do().
|
inherited |
Short way to get a Node by its path from state_.
Definition at line 95 of file test.cc.
Referenced by TestPhonyUseCase().
|
inline |
Definition at line 56 of file build_test.cc.
References Plan::AddTarget(), Plan::more_to_do(), and Plan::PrepareQueue().
| void PlanTest::TestPoolWithDepthOne | ( | const char * | test_case | ) |
Definition at line 204 of file build_test.cc.
References AssertParse(), Edge::inputs_, Plan::kEdgeSucceeded, and Edge::outputs_.
| Plan PlanTest::plan_ |
Definition at line 40 of file build_test.cc.
|
inherited |
Definition at line 40 of file test.h.
Referenced by TestPhonyUseCase().