An error occurred while fetching the assigned milestone of the selected merge_request.
1 unresolved thread
Activity
assigned to @jeanvisagie
@brano could you have a look if I'm using the mocking framework sensibly
added 1 commit
- b8e649d2 - add new global JS method setDeviceConfigBulk()
mentioned in commit 06584ebf
- src/scripting/modeljs-test.cpp 0 → 100644
26 #include "model/modelmaintenance-mock.h" 27 #include "scripting/jsmodel.h" 28 #include "scripting/jshandler.h" 29 30 static ds::LogChannel dsLogChannel("modelJsTest"); 31 static const char* TAGS = "[dss][dssModelJs]"; 32 33 using namespace dss; 34 using namespace trompeloeil; 35 using trompeloeil::_; 36 37 namespace { 38 39 DSUID_DEFINE(dsuid1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10); 40 DSUID_DEFINE(dsuid2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); 41 DSUID_DEFINE(dsuid3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2); FYI I introduced c++
Dsuid
class that inherits Cdsuid
. It is explicitly convertible fromconst char*
. More convenient than this DSUID_DEFINE macro.apt.allocateDevice(Dsuid{"000000000000000000000000000000000a"})
Edited by Branislav Katreniak
@brano could you have a look if I'm using the mocking framework sensibly
+1
FYI ... I introduced these
-mock.h
files because adding these mocks to.h
measurably slowed down the compilation.