github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/integration_test/spectest/v2/testdata/ref_func.json (about)

     1  {"source_filename": "./ref_func.wast",
     2   "commands": [
     3    {"type": "module", "line": 1, "filename": "ref_func.0.wasm"}, 
     4    {"type": "register", "line": 4, "as": "M"}, 
     5    {"type": "module", "line": 6, "filename": "ref_func.1.wasm"}, 
     6    {"type": "assert_return", "line": 56, "action": {"type": "invoke", "field": "is_null-f", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 
     7    {"type": "assert_return", "line": 57, "action": {"type": "invoke", "field": "is_null-g", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 
     8    {"type": "assert_return", "line": 58, "action": {"type": "invoke", "field": "is_null-v", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 
     9    {"type": "assert_return", "line": 60, "action": {"type": "invoke", "field": "call-f", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "i32", "value": "4"}]}, 
    10    {"type": "assert_return", "line": 61, "action": {"type": "invoke", "field": "call-g", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    11    {"type": "assert_return", "line": 62, "action": {"type": "invoke", "field": "call-v", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "i32", "value": "4"}]}, 
    12    {"type": "action", "line": 63, "action": {"type": "invoke", "field": "set-g", "args": []}, "expected": []}, 
    13    {"type": "assert_return", "line": 64, "action": {"type": "invoke", "field": "call-v", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    14    {"type": "action", "line": 65, "action": {"type": "invoke", "field": "set-f", "args": []}, "expected": []}, 
    15    {"type": "assert_return", "line": 66, "action": {"type": "invoke", "field": "call-v", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "i32", "value": "4"}]}, 
    16    {"type": "assert_invalid", "line": 69, "filename": "ref_func.2.wasm", "text": "unknown function 7", "module_type": "binary"}, 
    17    {"type": "module", "line": 80, "filename": "ref_func.3.wasm"}, 
    18    {"type": "assert_invalid", "line": 109, "filename": "ref_func.4.wasm", "text": "undeclared function reference", "module_type": "binary"}, 
    19    {"type": "assert_invalid", "line": 113, "filename": "ref_func.5.wasm", "text": "undeclared function reference", "module_type": "binary"}]}