|
Ninja
|
A base test fixture that includes a State object with a builtin "cat" rule. More...
#include <test.h>

Public Member Functions | |
| void | AddAssertionFailure () |
| void | AddCatRule (State *state) |
| Add a "cat" rule to state. More... | |
| int | AssertionFailures () const |
| bool | Check (bool condition, const char *file, int line, const char *error) |
| bool | Failed () const |
| Node * | GetNode (const string &path) |
| Short way to get a Node by its path from state_. More... | |
| virtual void | Run ()=0 |
| virtual void | SetUp () |
| StateTestWithBuiltinRules () | |
| virtual void | TearDown () |
Public Attributes | |
| State | state_ |
A base test fixture that includes a State object with a builtin "cat" rule.
| StateTestWithBuiltinRules::StateTestWithBuiltinRules | ( | ) |
Definition at line 83 of file test.cc.
References AddCatRule(), and state_.
|
inlineinherited |
Definition at line 42 of file test.h.
References testing::Test::assertion_failures_.
| 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 87 of file test.cc.
References AssertParse().
Referenced by BuildTest::RebuildTarget(), and StateTestWithBuiltinRules().
|
inlineinherited |
Definition at line 41 of file test.h.
References testing::Test::assertion_failures_.
|
inherited |
Definition at line 119 of file ninja_test.cc.
References testing::Test::failed_, printer, and LinePrinter::PrintOnNewLine().
|
inlineinherited |
| Node * StateTestWithBuiltinRules::GetNode | ( | const string & | path | ) |
Short way to get a Node by its path from state_.
Definition at line 93 of file test.cc.
References EXPECT_FALSE, State::GetNode(), and state_.
Referenced by BuildTest::Dirty(), and PlanTest::TestPoolWithDepthOne().
|
pure virtualinherited |
Referenced by main().
|
inlinevirtualinherited |
Reimplemented in BuildWithDepsLogTest, BuildTest, and CleanTest.
Definition at line 36 of file test.h.
Referenced by main(), and BuildTest::SetUp().
|
inlinevirtualinherited |
| State StateTestWithBuiltinRules::state_ |
Definition at line 123 of file test.h.
Referenced by GetNode(), BuildTest::SetUp(), StateTestWithBuiltinRules(), and PlanTest::TestPoolWithDepthOne().
1.8.14