MCPcopy Create free account
hub / github.com/ElementsProject/elements / RegisterTest

Function RegisterTest

src/leveldb/util/testharness.cc:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26} // namespace
27
28bool RegisterTest(const char* base, const char* name, void (*func)()) {
29 if (tests == nullptr) {
30 tests = new std::vector<Test>;
31 }
32 Test t;
33 t.base = base;
34 t.name = name;
35 t.func = func;
36 tests->push_back(t);
37 return true;
38}
39
40int RunAllTests() {
41 const char* matcher = getenv("LEVELDB_TESTS");

Callers 1

testharness.hFile · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected