Get context id, location and status of the module
| 110 | |
| 111 | // Get context id, location and status of the module |
| 112 | void frame010a(ModuleContext* mc) |
| 113 | { |
| 114 | Module* m = mc->GetModule(); |
| 115 | |
| 116 | long int contextid = m->GetModuleId(); |
| 117 | |
| 118 | std::string location = m->GetLocation(); |
| 119 | US_TEST_CONDITION(!location.empty(), "Test for non-empty module location") |
| 120 | |
| 121 | US_TEST_CONDITION(m->IsLoaded(), "Test for loaded flag") |
| 122 | |
| 123 | US_TEST_CONDITION(ModuleSettings::GetStoragePath().empty(), "Test for empty base storage path") |
| 124 | US_TEST_CONDITION(m->GetModuleContext()->GetDataFile("").empty(), "Test for empty data path") |
| 125 | US_TEST_CONDITION(m->GetModuleContext()->GetDataFile("bla").empty(), "Test for empty data file path") |
| 126 | } |
| 127 | |
| 128 | //---------------------------------------------------------------------------- |
| 129 | //Test result of GetService(ServiceReference()). Should throw std::invalid_argument |
no test coverage detected