return !isNode(theNode, NODE_SOURCE, NODE_VALIDATOR, NULL);
}
+// LCOV_EXCL_START
// widget api?
bool isCaseNode(xmlNodePtr theNode)
{
return isNode(theNode, WDG_OPTIONALBOX, WDG_SWITCH_CASE, WDG_TOOLBOX_BOX,
WDG_RADIOBOX_ITEM, NULL);
}
+// LCOV_EXCL_STOP
bool hasChild(xmlNodePtr theNode)
{
return result;
}
+// LCOV_EXCL_START
std::string getContent(xmlNodePtr theNode)
{
std::string result = "";
xmlFree(aContent);
return result;
}
+// LCOV_EXCL_STOP
std::string getNormalizedProperty(xmlNodePtr theNode, const char* thePropName)
{
return result;
}
-CONFIG_EXPORT std::string normalize(const char* theString)
-{
- if (!theString)
- return std::string();
- return normalize(std::string(theString));
-}
-
CONFIG_EXPORT std::string normalize(const std::string& theString)
{
std::string result = theString;
void* aModLib = dlopen( aFileName.c_str(), RTLD_LAZY | RTLD_GLOBAL );
#endif
if(!aModLib && theLibName != "DFBrowser") { // don't show error for internal debugging tool
+// LCOV_EXCL_START
std::string anErrorMsg = "Failed to load " + aFileName;
#ifdef WIN32
DWORD dwLastError = ::GetLastError();
#endif
std::cerr << anErrorMsg << std::endl;
Events_InfoMessage("Config_ModuleReader", anErrorMsg).send();
+// LCOV_EXCL_STOP
}
}
# check sections and properties are not empty
assert(len(Config_PropManager().getSections()) > 0)
assert(len(Config_PropManager().getProperties()) > 0)
+
+# verify the property
+prop = Config_PropManager().findProp("TestSection", "PropDouble")
+assert(prop is not None)
+prop.setTitle("PropTitle")
+assert(prop.title() == "PropTitle")
+prop.setMin("0")
+assert(prop.min() == "0")
+prop.setMax("100")
+assert(prop.max() == "100")
+prop.setType(Config_Prop.String)
+assert(prop.type() == Config_Prop.String)