Ninja
Public Member Functions | Public Attributes
StateTestWithBuiltinRules Struct Reference

A base test fixture that includes a State object with a builtin "cat" rule. More...

#include <test.h>

Inheritance diagram for StateTestWithBuiltinRules:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void AddCatRule (State *state)
 Add a "cat" rule to state.
NodeGetNode (const string &path)
 Short way to get a Node by its path from state_.
 StateTestWithBuiltinRules ()

Public Attributes

State state_

Detailed Description

A base test fixture that includes a State object with a builtin "cat" rule.

Definition at line 30 of file test.h.


Constructor & Destructor Documentation

Definition at line 76 of file test.cc.

References AddCatRule(), and state_.


Member Function Documentation

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 BuildTest::RebuildTarget(), and 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().


Member Data Documentation

Definition at line 40 of file test.h.

Referenced by GetNode(), BuildTest::SetUp(), and StateTestWithBuiltinRules().


The documentation for this struct was generated from the following files: