MCPcopy Create free account
hub / github.com/duckdb/duckdb / GetExtensionAutoLoadingMode

Method GetExtensionAutoLoadingMode

test/helpers/test_config.cpp:240–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240TestConfiguration::ExtensionAutoLoadingMode TestConfiguration::GetExtensionAutoLoadingMode() {
241 string res = StringUtil::Lower(GetOptionOrDefault("autoloading", string("default")));
242 if (res == "none" || res == "default") {
243 return TestConfiguration::ExtensionAutoLoadingMode::NONE;
244 } else if (res == "available") {
245 return TestConfiguration::ExtensionAutoLoadingMode::AVAILABLE;
246 } else if (res == "all") {
247 return TestConfiguration::ExtensionAutoLoadingMode::ALL;
248 }
249 throw std::runtime_error("Unknown autoloading mode");
250}
251
252bool TestConfiguration::ShouldSkipTest(const string &test_name) {
253 if (test_name.find('/') == 0) {

Callers 2

SQLLogicTestRunnerMethod · 0.80
LoadExtensionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected