MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / TEST_F

Function TEST_F

test/validator/ValidatorRegressionTest.cpp:172–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172TEST_F(ValidatorRegressionTest, MaxSubtypeDepthExceeded) {
173 auto Wasm = generateWasmWithSubtypeChain(65);
174 auto Result = LoadEngine->parseModule(Wasm);
175 ASSERT_TRUE(Result);
176
177 auto ValidationResult = ValidEngine->validate(**Result);
178 EXPECT_FALSE(ValidationResult);
179 EXPECT_EQ(ValidationResult.error(), WasmEdge::ErrCode::Value::InvalidSubType);
180}
181
182TEST_F(ValidatorRegressionTest, InvalidTypeIndex) {
183 std::array<WasmEdge::Byte, 24> Wasm = {

Callers

nothing calls this directly

Calls 3

parseModuleMethod · 0.80
validateMethod · 0.45

Tested by

no test coverage detected