Ninja
Public Member Functions | Public Attributes
PlanTest Struct Reference

Fixture for tests involving Plan. More...

Inheritance diagram for PlanTest:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void AddCatRule (State *state)
 Add a "cat" rule to state.
void FindWorkSorted (deque< Edge * > *ret, int count)
 Because FindWork does not return Edges in any sort of predictable order,.
NodeGetNode (const string &path)
 Short way to get a Node by its path from state_.

Public Attributes

Plan plan_
State state_

Detailed Description

Fixture for tests involving Plan.

Definition at line 25 of file build_test.cc.


Member Function Documentation

void StateTestWithBuiltinRules::AddCatRule ( State state) [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 BuildTest::RebuildTarget(), and StateTestWithBuiltinRules::StateTestWithBuiltinRules().

void PlanTest::FindWorkSorted ( deque< Edge * > *  ret,
int  count 
) [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_.

Node * StateTestWithBuiltinRules::GetNode ( const string &  path) [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().


Member Data Documentation

Definition at line 26 of file build_test.cc.

Referenced by FindWorkSorted().


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