MCPcopy Create free account
hub / github.com/WebAssembly/wabt / ReadModule

Method ReadModule

src/test-interp.cc:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28class InterpTest : public ::testing::Test {
29 public:
30 void ReadModule(const std::vector<u8>& data) {
31 Errors errors;
32 ReadBinaryOptions options;
33 Result result = ReadBinaryInterp("<internal>", data.data(), data.size(),
34 options, &errors, &module_desc_);
35 ASSERT_EQ(Result::Ok, result)
36 << FormatErrorsToString(errors, Location::Type::Binary);
37 }
38
39 void Instantiate(const RefVec& imports = RefVec{}) {
40 mod_ = Module::New(store_, module_desc_);

Callers

nothing calls this directly

Calls 4

ReadBinaryInterpFunction · 0.85
FormatErrorsToStringFunction · 0.85
dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected