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

Function validateWorld

source/test/spawn_test.cpp:10–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8using namespace Star;
9
10void validateWorld(TestUniverse& testUniverse) {
11 testUniverse.update(100);
12
13 // Just make sure the test world draws something for now, this will grow to
14 // include more than this.
15 EXPECT_GE(testUniverse.currentClientDrawables().size(), 1u) << strf("world: {}", testUniverse.currentPlayerWorld());
16
17 auto assets = Root::singleton().assets();
18 for (auto const& drawable : testUniverse.currentClientDrawables()) {
19 if (drawable.isImage())
20 assets->image(drawable.imagePart().image);
21 }
22}
23
24TEST(SpawnTest, RandomCelestialWorld) {
25 CelestialMasterDatabase celestialDatabase;

Callers 1

TESTFunction · 0.85

Calls 9

strfFunction · 0.85
singletonClass · 0.85
currentPlayerWorldMethod · 0.80
assetsMethod · 0.80
isImageMethod · 0.80
updateMethod · 0.45
sizeMethod · 0.45
imageMethod · 0.45

Tested by

no test coverage detected