MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / TEST_F

Function TEST_F

test/MapExport.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37using MapExportTest = RadiantTest;
38
39TEST_F(MapExportTest, exportSelectedWithFormat)
40{
41 createAndSelectSingleBrush();
42
43 auto format = GlobalMapFormatManager().getMapFormatByName(map::PORTABLE_MAP_FORMAT_NAME);
44
45 std::ostringstream output;
46 GlobalMapModule().exportSelected(output, format);
47
48 output.flush();
49
50 // Minimal assertion: we got a string that appears to start like an XML document
51 algorithm::assertStringIsMapxFile(output.str());
52}
53
54TEST_F(MapExportTest, exportSelectedDoesNotSendMessages)
55{

Callers

nothing calls this directly

Calls 15

assertStringIsMapxFileFunction · 0.85
hasFaceWithPropertiesFunction · 0.85
getMapFormatByNameMethod · 0.80
exportSelectedMethod · 0.80
addListenerMethod · 0.80
removeListenerMethod · 0.80
getTemporaryDataPathMethod · 0.80
stringMethod · 0.80
Plane3Class · 0.50

Tested by

no test coverage detected