Please confirm that a character count differing from the following targets is not due to a misconfiguration of your versioning software (Correct line endings for your system) See issue #18 ( https://github.com/saschazelzer/CppMicroServices/issues/18 )
| 40 | // a misconfiguration of your versioning software (Correct line endings for your system) |
| 41 | // See issue #18 ( https://github.com/saschazelzer/CppMicroServices/issues/18 ) |
| 42 | void checkResourceInfo(const ModuleResource& res, const std::string& path, |
| 43 | const std::string& baseName, |
| 44 | const std::string& completeBaseName, const std::string& suffix, |
| 45 | const std::string& completeSuffix, |
| 46 | int size, bool children = false) |
| 47 | { |
| 48 | US_TEST_CONDITION_REQUIRED(res.IsValid(), "Valid resource") |
| 49 | US_TEST_CONDITION(res.GetBaseName() == baseName, "GetBaseName()") |
| 50 | US_TEST_CONDITION(res.GetChildren().empty() == !children, "No children") |
| 51 | US_TEST_CONDITION(res.GetCompleteBaseName() == completeBaseName, "GetCompleteBaseName()") |
| 52 | US_TEST_CONDITION(res.GetName() == completeBaseName + "." + suffix, "GetName()") |
| 53 | US_TEST_CONDITION(res.GetResourcePath() == path + completeBaseName + "." + suffix, "GetResourcePath()") |
| 54 | US_TEST_CONDITION(res.GetPath() == path, "GetPath()") |
| 55 | US_TEST_CONDITION(res.GetSize() == size, "Data size") |
| 56 | US_TEST_CONDITION(res.GetSuffix() == suffix, "Suffix") |
| 57 | US_TEST_CONDITION(res.GetCompleteSuffix() == completeSuffix, "Complete suffix") |
| 58 | } |
| 59 | |
| 60 | void testTextResource(Module* module) |
| 61 | { |
no test coverage detected