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 string &path) |
Short way to get a Node by its path from state_. More... | |
Public Attributes | |
Plan | plan_ |
State | state_ |
Fixture for tests involving Plan.
Definition at line 25 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 80 of file test.cc.
References AssertParse().
Referenced by StateTestWithBuiltinRules::StateTestWithBuiltinRules().
|
inline |
Because FindWork does not return Edges in any sort of predictable order,.
Definition at line 31 of file build_test.cc.
References Plan::FindWork(), Plan::more_to_do(), Edge::outputs_, and plan_.
|
inherited |
Short way to get a Node by its path from state_.
Definition at line 86 of file test.cc.
References State::GetNode(), and StateTestWithBuiltinRules::state_.
Referenced by BuildTest::Dirty().
Plan PlanTest::plan_ |
Definition at line 26 of file build_test.cc.
Referenced by FindWorkSorted().
|
inherited |
Definition at line 40 of file test.h.
Referenced by StateTestWithBuiltinRules::GetNode(), BuildTest::SetUp(), and StateTestWithBuiltinRules::StateTestWithBuiltinRules().