Test coverage

This is how much of nanoMMO 0.97.8's code the tests run, as Clang's source-based coverage measures it. All of the tests run against MySQL, Redis and Consul, and the code of the servers, the bot and the client that no test reaches counts too, at zero. A branch is each way an if or a && can go, and a region is a stretch of code that runs as one.

Lines
53.2%
14,737 of 27,716 run
Functions
64.1%
1,160 of 1,811 run
Branches
48.7%
5,148 of 10,576 run
Regions
53.6%
7,640 of 14,266 run

Across versions

Each version's coverage as it was measured, the newest on the right.

Lines run · the share the tests run
Lines measured · all there is to run
The numbers, newest first
VersionLines runLinesFunctionsBranchesRegionsMeasured
0.97.814,737 of 27,71653.2%64.1%48.7%53.6%2026-11-26
0.97.214,714 of 27,69653.1%64.0%48.6%53.5%2026-11-25
0.86.111,857 of 23,20351.1%61.8%46.4%51.3%2026-11-25
0.80.010,078 of 20,35849.5%60.2%44.8%49.7%2026-11-25
0.73.08,670 of 18,09047.9%58.4%43.9%48.2%2026-11-25
ep0292,700 of 5,20151.9%65.1%45.8%54.0%2026-10-18
ep0282,191 of 5,19742.2%53.5%39.6%46.6%2026-10-18

By folder

Each folder opens to its files, and each file to its code, with how many times each line ran.

FolderLines runLinesRun / allFunctionsBranches
bot/ 11 files23.5%270 / 1,14726.4%26.7%
backoff.cc100.0%9 / 9100.0%–
bag.cc100.0%24 / 24100.0%95.8%
bot.cc0.0%0 / 4970.0%0.0%
bot.h0.0%0 / 30.0%–
bot_metrics.cc0.0%0 / 360.0%0.0%
bot_metrics.h0.0%0 / 30.0%–
factions.cc100.0%39 / 39100.0%100.0%
main.cc0.0%0 / 3230.0%0.0%
quests.cc96.0%72 / 75100.0%93.2%
wander.cc87.6%85 / 9783.3%72.2%
war.cc100.0%41 / 41100.0%100.0%
client/ 123 files35.5%4,482 / 12,63145.9%31.0%
ambience.cc85.5%366 / 42889.7%82.8%
animator.cc83.2%129 / 15571.4%59.6%
animator.h100.0%1 / 1100.0%–
audio.cc0.0%0 / 1250.0%0.0%
audio.h0.0%0 / 30.0%–
bag_window.cc22.8%90 / 39445.0%17.9%
bag_window.h0.0%0 / 40.0%–
bench_main.cc0.0%0 / 780.0%0.0%
boss_bar.cc37.3%22 / 5950.0%65.0%
camera.cc26.9%7 / 2633.3%–
camera.h0.0%0 / 10.0%–
character_screen.cc0.0%0 / 940.0%0.0%
character_screen.h0.0%0 / 30.0%–
characters.cc79.6%317 / 39885.2%63.3%
characters.h100.0%1 / 1100.0%–
chat_window.cc26.9%53 / 19775.0%25.0%
chunks.cc100.0%60 / 60100.0%100.0%
combat_text.cc40.3%31 / 7760.0%50.0%
combat_text.h100.0%1 / 1100.0%–
compass.cc30.3%60 / 19858.3%23.4%
connection.cc0.0%0 / 1450.0%0.0%
connection.h0.0%0 / 220.0%–
craft_window.cc23.0%23 / 10057.1%22.5%
craft_window.h0.0%0 / 30.0%–
cube.cc100.0%49 / 49100.0%83.3%
cursor.cc0.0%0 / 370.0%0.0%
daylight.cc65.0%93 / 14391.7%72.5%
death_screen.cc21.2%11 / 5250.0%28.6%
death_screen.h100.0%1 / 1100.0%–
duel_window.cc4.7%3 / 6433.3%0.0%
figures.cc97.2%205 / 211100.0%89.1%
foley.cc0.0%0 / 5020.0%0.0%
fx.cc19.6%165 / 84233.3%16.9%
fx.h100.0%1 / 1100.0%–
gate.cc100.0%35 / 35100.0%100.0%
glsl.cc84.6%11 / 13100.0%50.0%
graphics.h100.0%1 / 1100.0%–
ground.cc98.4%62 / 63100.0%95.5%
gui.cc0.0%0 / 190.0%0.0%
guild_window.cc1.9%4 / 21114.3%2.3%
guild_window.h0.0%0 / 30.0%–
help_window.cc0.0%0 / 1240.0%0.0%
help_window.h0.0%0 / 20.0%–
herald_window.cc0.0%0 / 690.0%0.0%
herald_window.h0.0%0 / 20.0%–
hotbar.cc19.3%43 / 22345.5%11.5%
icon.h0.0%0 / 50.0%–
inbox.cc78.0%32 / 4175.0%77.3%
inbox.h44.4%4 / 944.4%–
input.cc0.0%0 / 730.0%0.0%
interpolation.cc85.5%59 / 69100.0%79.4%
jukebox.cc92.3%24 / 26100.0%91.7%
jukebox.h100.0%1 / 1100.0%–
link.h0.0%0 / 10.0%–
loading.cc53.5%54 / 10175.0%73.7%
loading.h100.0%4 / 4100.0%50.0%
local_connection.cc0.0%0 / 1650.0%0.0%
local_connection.h0.0%0 / 100.0%–
login_screen.cc4.8%32 / 6623.3%5.4%
login_screen.h0.0%0 / 30.0%–
main.cc0.0%0 / 8080.0%0.0%
map.cc13.8%54 / 39010.5%15.5%
map.h0.0%0 / 30.0%–
menu.cc0.0%0 / 2350.0%0.0%
menu.h0.0%0 / 60.0%–
messages.cc76.2%61 / 80100.0%75.0%
moves.cc100.0%89 / 89100.0%90.0%
nameplates.cc6.5%10 / 15422.2%14.1%
names.cc38.8%26 / 6740.0%64.3%
offscreen.cc82.6%19 / 2383.3%–
offscreen.h50.0%1 / 250.0%–
outline.cc0.0%0 / 120.0%0.0%
picking.cc95.4%83 / 8781.8%93.1%
player_frame.cc0.0%0 / 1630.0%0.0%
player_frame.h0.0%0 / 10.0%–
postprocess.cc0.0%0 / 1350.0%0.0%
predicted_bag.cc81.1%30 / 37100.0%72.7%
predicted_bag.h100.0%2 / 2100.0%–
prediction.cc85.5%53 / 62100.0%65.8%
prediction.h83.3%5 / 683.3%–
quest_window.cc6.5%18 / 27810.0%17.7%
quest_window.h0.0%0 / 70.0%–
reactions.cc0.0%0 / 470.0%0.0%
renderer.cc74.5%271 / 36476.2%58.3%
renderer.h34.3%12 / 3535.3%–
rig.cc99.3%399 / 402100.0%82.5%
round_trip.cc46.2%12 / 2666.7%66.7%
round_trip.h100.0%1 / 1100.0%–
scene.cc100.0%4 / 4100.0%–
sea.cc100.0%76 / 76100.0%100.0%
sea.h100.0%1 / 1100.0%–
servers.cc0.0%0 / 400.0%0.0%
servers.h0.0%0 / 10.0%–
settings.cc84.9%107 / 12650.0%81.8%
settings.h100.0%3 / 3100.0%–
sky.cc100.0%130 / 130100.0%100.0%
sound.cc100.0%6 / 6100.0%100.0%
sound.h100.0%1 / 1100.0%–
soundboard.cc0.0%0 / 590.0%0.0%
soundboard.h0.0%0 / 10.0%–
sounds_main.cc0.0%0 / 1100.0%0.0%
soundscape.cc30.0%33 / 11025.0%22.1%
synth.cc71.1%59 / 8375.0%55.6%
synth.h100.0%1 / 1100.0%–
talk_window.cc0.0%0 / 410.0%0.0%
talk_window.h0.0%0 / 20.0%–
telegraphs.cc100.0%32 / 32100.0%85.0%
telegraphs.h100.0%2 / 2100.0%–
theme.cc2.4%12 / 5036.5%0.0%
theme.h0.0%0 / 20.0%–
trade_window.cc11.6%15 / 12950.0%3.7%
trade_window.h0.0%0 / 10.0%–
trainer_window.cc0.0%0 / 460.0%0.0%
trainer_window.h0.0%0 / 30.0%–
translations.cc88.8%469 / 52897.2%80.3%
translations.h33.3%2 / 650.0%–
trees.cc97.1%66 / 68100.0%78.6%
triangles.cc100.0%27 / 27100.0%100.0%
triangles.h100.0%1 / 1100.0%–
weather.cc40.7%216 / 53147.2%22.1%
weather.h0.0%0 / 30.0%–
window.cc81.0%17 / 2150.0%25.0%
window.h100.0%1 / 1100.0%–
content/ 14 files92.3%1,156 / 1,25298.1%87.4%
checks.h76.0%19 / 25100.0%80.0%
content.cc96.2%256 / 266100.0%89.3%
factions.cc88.9%32 / 36100.0%87.5%
figures.cc97.8%90 / 92100.0%90.9%
graph.cc97.3%216 / 222100.0%85.0%
graph_main.cc0.0%0 / 340.0%0.0%
items.cc94.8%91 / 96100.0%93.1%
monsters.cc97.3%144 / 148100.0%97.4%
npcs.cc84.6%22 / 26100.0%83.3%
quests.cc85.7%24 / 28100.0%85.7%
recipes.cc88.6%31 / 35100.0%88.9%
rig.cc94.8%109 / 115100.0%92.9%
skills.cc93.5%100 / 107100.0%89.1%
text.cc100.0%22 / 22100.0%100.0%
gateway/ 6 files78.9%645 / 81791.8%66.7%
gateway.cc86.0%393 / 457100.0%62.0%
gateway.h100.0%1 / 1100.0%–
main.cc0.0%0 / 750.0%0.0%
websocket.cc88.1%192 / 218100.0%76.7%
websocket.h100.0%2 / 2100.0%–
world_list.cc89.1%57 / 6488.9%77.8%
protocol/ 14 files90.8%642 / 70796.9%81.7%
chat.cc100.0%16 / 16100.0%100.0%
clock.h100.0%5 / 5100.0%–
framing.cc100.0%30 / 30100.0%100.0%
framing.h100.0%1 / 1100.0%–
login_client.cc85.8%175 / 20487.5%50.0%
messages.cc90.2%166 / 184100.0%81.1%
messages.h100.0%13 / 13100.0%–
parts.cc97.3%144 / 148100.0%92.1%
parts.h100.0%1 / 1100.0%–
places.cc100.0%10 / 10100.0%–
settings.cc100.0%14 / 14100.0%100.0%
settings.h0.0%0 / 40.0%–
tls.cc83.1%49 / 59100.0%70.8%
version.cc100.0%18 / 18100.0%87.5%
server/ 57 files79.7%7,161 / 8,98292.2%74.5%
accounts.cc83.0%44 / 53100.0%81.8%
accounts.h100.0%1 / 1100.0%–
characters.cc62.2%120 / 193100.0%43.1%
characters.h100.0%1 / 1100.0%–
consul.cc79.2%137 / 17392.3%55.9%
consul.h100.0%1 / 1100.0%–
copies.cc98.7%148 / 150100.0%98.2%
copies.h100.0%2 / 2100.0%–
database.cc82.2%199 / 242100.0%72.9%
database.h100.0%6 / 6100.0%–
duels.cc94.4%68 / 72100.0%83.3%
duels.h100.0%4 / 4100.0%100.0%
events.cc78.1%82 / 105100.0%70.0%
events.h100.0%1 / 1100.0%–
guilds.cc88.3%685 / 776100.0%73.5%
guilds.h100.0%1 / 1100.0%–
history.cc100.0%27 / 27100.0%100.0%
inputs.cc86.7%72 / 83100.0%80.0%
interest.cc100.0%31 / 31100.0%91.7%
interest.h100.0%8 / 8100.0%100.0%
inventory.cc99.2%248 / 250100.0%95.7%
inventory.h100.0%6 / 6100.0%–
levels.cc100.0%11 / 11100.0%100.0%
listen.cc93.8%45 / 48100.0%66.7%
login_main.cc0.0%0 / 690.0%0.0%
login_server.cc29.0%107 / 36935.7%43.3%
main.cc0.0%0 / 3100.0%0.0%
metrics.cc95.0%115 / 12188.2%100.0%
metrics.h100.0%6 / 6100.0%–
monsters.cc93.5%230 / 246100.0%80.8%
npcs.cc80.0%16 / 20100.0%83.3%
password.cc90.0%18 / 20100.0%50.0%
players.cc86.2%613 / 711100.0%75.2%
players.h100.0%2 / 2100.0%–
recorder.cc88.5%46 / 52100.0%73.1%
recorder_main.cc0.0%0 / 590.0%0.0%
redis.cc84.6%226 / 267100.0%78.3%
redis.h100.0%1 / 1100.0%–
saver_main.cc0.0%0 / 1000.0%0.0%
server.cc79.6%1,266 / 1,59189.3%72.4%
session.cc90.7%107 / 118100.0%81.8%
shown.cc92.5%149 / 161100.0%81.0%
stories.cc100.0%69 / 69100.0%83.3%
storyteller.cc2.2%1 / 4520.0%0.0%
test_content.h100.0%110 / 110100.0%–
test_services.h65.5%19 / 29100.0%50.0%
tick.cc100.0%13 / 13100.0%100.0%
token_bucket.cc100.0%12 / 12100.0%100.0%
tokens.cc90.8%59 / 65100.0%72.7%
tracing.cc96.6%281 / 29197.3%83.7%
tracing.h100.0%2 / 2100.0%–
trades.cc91.9%137 / 14992.9%88.3%
walking.cc95.5%21 / 22100.0%90.0%
wars.h100.0%12 / 12100.0%100.0%
weather.cc98.8%82 / 83100.0%93.3%
world.cc92.6%1,488 / 1,60799.0%84.3%
world.h100.0%5 / 5100.0%–
terrain/ 7 files93.9%340 / 36297.6%91.1%
lands.cc97.1%34 / 35100.0%91.7%
lands.h0.0%0 / 210.0%–
noise.cc100.0%41 / 41100.0%100.0%
paths.cc100.0%146 / 146100.0%90.2%
paths.h100.0%1 / 1100.0%–
terrain.cc100.0%103 / 103100.0%100.0%
terrain.h100.0%15 / 15100.0%50.0%
tools/ 5 files2.3%41 / 1,8186.9%2.7%
cheat/main.cc0.0%0 / 7230.0%0.0%
cheat/measure.cc100.0%41 / 41100.0%95.8%
cinema/film.cc0.0%0 / 4950.0%0.0%
cinema/film.h0.0%0 / 30.0%–
cinema/main.cc0.0%0 / 5560.0%0.0%