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

Function TEST

pj_plotting/tests/parameter_form_test.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46} // namespace
47
48TEST(ParameterForm, EmptySchema) {
49 ParameterForm form;
50 form.setSchema({});
51 EXPECT_TRUE(form.isEmpty());
52 EXPECT_TRUE(form.values().empty());
53}
54
55// [k] A kEnum with no selectable value (empty `values`) must still emit its key — a create()
56// reading params[name] should never silently get a missing key.

Callers

nothing calls this directly

Calls 13

integerFunction · 0.85
booleanFunction · 0.85
numFunction · 0.85
setSchemaMethod · 0.80
valuesMethod · 0.80
atMethod · 0.80
isEmptyMethod · 0.45
emptyMethod · 0.45
containsMethod · 0.45
maximumMethod · 0.45
setValuesMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected