Ninja
|
A base test fixture that includes a State object with a builtin "cat" rule. More...
#include <test.h>
Public Member Functions | |
void | AddCatRule (State *state) |
Add a "cat" rule to state. More... | |
Node * | GetNode (const string &path) |
Short way to get a Node by its path from state_. More... | |
StateTestWithBuiltinRules () | |
Public Attributes | |
State | state_ |
A base test fixture that includes a State object with a builtin "cat" rule.
StateTestWithBuiltinRules::StateTestWithBuiltinRules | ( | ) |
Definition at line 76 of file test.cc.
References AddCatRule(), and state_.
void StateTestWithBuiltinRules::AddCatRule | ( | State * | state | ) |
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().
Node * StateTestWithBuiltinRules::GetNode | ( | const string & | path | ) |
Short way to get a Node by its path from state_.
Definition at line 86 of file test.cc.
References State::GetNode(), and state_.
Referenced by BuildTest::Dirty().
State StateTestWithBuiltinRules::state_ |
Definition at line 40 of file test.h.
Referenced by GetNode(), BuildTest::SetUp(), and StateTestWithBuiltinRules().