/src/WasmEdge/include/host/mock/wasi_logging_module.h
Line | Count | Source (jump to first uncovered line) |
1 | | #pragma once |
2 | | |
3 | | #include "host/mock/wasi_logging_func.h" |
4 | | #include "runtime/instance/module.h" |
5 | | |
6 | | namespace WasmEdge { |
7 | | namespace Host { |
8 | | |
9 | | using namespace std::literals; |
10 | | |
11 | | class WasiLoggingModuleMock : public Runtime::Instance::ModuleInstance { |
12 | | public: |
13 | | WasiLoggingModuleMock() |
14 | 0 | : Runtime::Instance::ModuleInstance("wasi:logging/logging") { |
15 | 0 | addHostFunc("log"sv, std::make_unique<WasiLoggingMock::Log>()); |
16 | 0 | } |
17 | | }; |
18 | | |
19 | | } // namespace Host |
20 | | } // namespace WasmEdge |