MCPcopy Create free account
hub / github.com/ddnet/ddnet / TEST

Function TEST

src/test/editor_test.cpp:90–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90TEST(Editor, QuickActionNames)
91{
92 char aError[512];
93 EXPECT_TRUE(IsValidEditorTooltip("hello world.", aError, sizeof(aError)));
94 EXPECT_TRUE(IsValidEditorTooltip("[Ctrl+H] hello world.", aError, sizeof(aError)));
95 EXPECT_FALSE(IsValidEditorTooltip("[Ctrl+H hello world.", aError, sizeof(aError)));
96 EXPECT_FALSE(IsValidEditorTooltip("[ctrl+h] hello world.", aError, sizeof(aError)));
97 EXPECT_FALSE(IsValidEditorTooltip("hello world", aError, sizeof(aError)));
98 EXPECT_FALSE(IsValidEditorTooltip("hello world (Ctrl+H).", aError, sizeof(aError)));
99
100#define REGISTER_QUICK_ACTION(name, text, callback, disabled, active, button_color, description) AssertTooltip(description);
101#include <game/editor/quick_actions.h>
102#undef REGISTER_QUICK_ACTION
103}

Callers

nothing calls this directly

Calls 1

IsValidEditorTooltipFunction · 0.85

Tested by

no test coverage detected