MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / SetUp

Method SetUp

source/test/game_tests_main.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 : settings(std::move(settings)) {}
26
27 virtual void SetUp() {
28 Logger::addSink(make_shared<ErrorLogSink>());
29 root = make_unique<Root>(settings);
30 root->configuration()->set("clearUniverseFiles", true);
31 root->configuration()->set("clearPlayerFiles", true);
32 }
33
34 virtual void TearDown() {
35 root.reset();

Callers

nothing calls this directly

Calls 2

configurationMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected