Ninja
Public Member Functions | Public Attributes | List of all members
GraphTest Struct Reference
Inheritance diagram for GraphTest:
Inheritance graph
[legend]

Public Member Functions

void AddCatRule (State *state)
 Add a "cat" rule to state. More...
 
NodeGetNode (const std::string &path)
 Short way to get a Node by its path from state_. More...
 
 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.

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().

◆ 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.

Referenced by TestPhonyUseCase().

Member Data Documentation

◆ fs_

VirtualFileSystem GraphTest::fs_

Definition at line 26 of file graph_test.cc.

◆ scan_

DependencyScan GraphTest::scan_

Definition at line 27 of file graph_test.cc.

◆ state_

State StateTestWithBuiltinRules::state_
inherited

Definition at line 40 of file test.h.

Referenced by TestPhonyUseCase().


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