Include excluded tests in coverage report, use xorg-dummy-driver (#1193)
This commit is contained in:
@@ -39,16 +39,14 @@ cc_test(
|
||||
[
|
||||
"**/*.test.cpp",
|
||||
],
|
||||
exclude = [
|
||||
"storage/sync_file_source.test.cpp",
|
||||
"util/timer.test.cpp",
|
||||
"style/expression/expression.test.cpp",
|
||||
"map/map.test.cpp",
|
||||
],
|
||||
),
|
||||
args = [
|
||||
"--gtest_filter=-Map.StyleNetworkErrorRetry:Map.StyleNotFound",
|
||||
],
|
||||
copts = CPP_FLAGS + MAPLIBRE_FLAGS,
|
||||
data = glob(["fixtures/**/*"]),
|
||||
local = True,
|
||||
data = glob(["fixtures/**/*"]) + [
|
||||
"//:scripts/style-spec-reference/v8.json",
|
||||
],
|
||||
deps = [
|
||||
"testlib",
|
||||
"testutils",
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include <mbgl/util/run_loop.hpp>
|
||||
#include <stdexcept>
|
||||
#include <unordered_map>
|
||||
#include "mbgl/storage/resource_options.hpp"
|
||||
#include "mbgl/util/client_options.hpp"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
@@ -35,13 +37,13 @@ public:
|
||||
assets.emplace(key, std::make_shared<std::string>(data));
|
||||
};
|
||||
|
||||
virtual void setResourceOptions(ResourceOptions _) override { throw std::runtime_error("Not implemented"); }
|
||||
virtual void setResourceOptions(ResourceOptions) override {}
|
||||
|
||||
virtual ResourceOptions getResourceOptions() override { throw std::runtime_error("Not implemented"); }
|
||||
virtual ResourceOptions getResourceOptions() override { return ResourceOptions{}; }
|
||||
|
||||
virtual void setClientOptions(ClientOptions) override { throw std::runtime_error("Not implemented"); }
|
||||
virtual void setClientOptions(ClientOptions) override {}
|
||||
|
||||
virtual ClientOptions getClientOptions() { throw std::runtime_error("Not implemented"); }
|
||||
virtual ClientOptions getClientOptions() { return ClientOptions{}; }
|
||||
|
||||
private:
|
||||
std::unordered_map<std::string, std::shared_ptr<std::string>> assets;
|
||||
|
||||
Reference in New Issue
Block a user