MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / insertError

Method insertError

src/Mod/Test/Gui/UnitTestPy.cpp:90–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90Py::Object UnitTestDialogPy::insertError(const Py::Tuple& args)
91{
92 char* failure = nullptr;
93 char* details = nullptr;
94 if (!PyArg_ParseTuple(args.ptr(), "ss", &failure, &details)) {
95 throw Py::Exception();
96 }
97
98 UnitTestDialog::instance()->insertError(QString::fromLatin1(failure), QString::fromLatin1(details));
99 return Py::None();
100}
101
102Py::Object UnitTestDialogPy::setUnitTest(const Py::Tuple& args)
103{

Callers 3

exerciseFunction · 0.45
notifyTestFailedMethod · 0.45
notifyTestErroredMethod · 0.45

Calls 3

ExceptionClass · 0.50
instanceFunction · 0.50
ptrMethod · 0.45

Tested by

no test coverage detected