|
Ninja
|
#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"
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) |
| void AssertHash | ( | const char * | expected, |
| uint64_t | actual | ||
| ) |
Definition at line 109 of file test.cc.
References BuildLog::LogEntry::HashCommand().
Referenced by TEST_F().
| void AssertParse | ( | State * | state, |
| const char * | input, | ||
| ManifestParserOptions | opts | ||
| ) |
Definition at line 100 of file test.cc.
References ManifestParser::ParseTest(), and VerifyGraph().
Referenced by StateTestWithBuiltinRules::AddCatRule(), BuildTest::RebuildTarget(), BuildTest::SetUp(), DyndepParserTest::SetUp(), TEST_F(), TestPhonyUseCase(), and PlanTest::TestPoolWithDepthOne().
| 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().