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

Function TEST

pj_scripting/tests/python_engine_test.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28} // namespace
29
30TEST(PythonEngine, InspectReadsClassMetadata) {
31 auto engine = makePythonEngine();
32 auto classes = engine->inspectModule(kDoubleSource, "test");
33 ASSERT_TRUE(classes.has_value()) << (classes.has_value() ? "" : classes.error());
34 ASSERT_EQ(classes->size(), 1u);
35 EXPECT_EQ((*classes)[0].id, "double_it");
36 EXPECT_EQ((*classes)[0].output_kind, "double");
37}
38
39TEST(PythonEngine, CalculateComputesValueTimesTwo) {
40 auto engine = makePythonEngine();

Callers

nothing calls this directly

Calls 6

makePythonEngineFunction · 0.85
inspectModuleMethod · 0.45
sizeMethod · 0.45
createInstanceMethod · 0.45
calculateMethod · 0.45
failedMethod · 0.45

Tested by

no test coverage detected