Ninja
GraphTest Struct Reference
Inheritance diagram for GraphTest:

Public Member Functions

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

Public Attributes

VirtualFileSystem fs_
 
DependencyScan scan_
 
State state_
 

Detailed Description

Definition at line 23 of file graph_test.cc.

Constructor & Destructor Documentation

◆ GraphTest()

GraphTest::GraphTest ( )
inline

Definition at line 24 of file graph_test.cc.

References fs_, scan_, and StateTestWithBuiltinRules::state_.

Member Function Documentation

◆ AddCatRule()

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 89 of file test.cc.

References AssertParse().

Referenced by BuildTest::RebuildTarget(), and StateTestWithBuiltinRules().

◆ GetNode()

Node * StateTestWithBuiltinRules::GetNode ( const std::string & path)
inherited

Short way to get a Node by its path from state_.

Definition at line 95 of file test.cc.

References state_.

Referenced by BuildTest::Dirty(), PlanTest::PrepareForTarget(), TestPhonyUseCase(), and PlanTest::TestPoolWithDepthOne().

Member Data Documentation

◆ fs_

VirtualFileSystem GraphTest::fs_

Definition at line 26 of file graph_test.cc.

Referenced by GraphTest().

◆ scan_

DependencyScan GraphTest::scan_

Definition at line 27 of file graph_test.cc.

Referenced by GraphTest().

◆ state_


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