Ninja
Functions
test.cc File Reference
#include "test.h"
#include <algorithm>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include "build_log.h"
#include "graph.h"
#include "manifest_parser.h"
#include "util.h"
Include dependency graph for test.cc:

Go to the source code of this file.

Functions

void AssertHash (const char *expected, uint64_t actual)
 
void AssertParse (State *state, const char *input, ManifestParserOptions opts)
 
void VerifyGraph (const State &state)
 

Function Documentation

◆ AssertHash()

void AssertHash ( const char *  expected,
uint64_t  actual 
)

Definition at line 109 of file test.cc.

References BuildLog::LogEntry::HashCommand().

Referenced by TEST_F().

◆ AssertParse()

void AssertParse ( State state,
const char *  input,
ManifestParserOptions  opts 
)

◆ VerifyGraph()

void VerifyGraph ( const State state)

Definition at line 113 of file test.cc.

References State::edges_, Node::in_edge(), Node::out_edges(), and State::paths_.

Referenced by ParserTest::AssertParse(), and AssertParse().