github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/integration_test/spectest/v2/testdata/exports.json (about) 1 {"source_filename": "./exports.wast", 2 "commands": [ 3 {"type": "module", "line": 3, "filename": "exports.0.wasm"}, 4 {"type": "module", "line": 4, "filename": "exports.1.wasm"}, 5 {"type": "module", "line": 5, "filename": "exports.2.wasm"}, 6 {"type": "module", "line": 7, "filename": "exports.3.wasm"}, 7 {"type": "module", "line": 8, "filename": "exports.4.wasm"}, 8 {"type": "module", "line": 9, "filename": "exports.5.wasm"}, 9 {"type": "module", "line": 10, "filename": "exports.6.wasm"}, 10 {"type": "module", "line": 11, "filename": "exports.7.wasm"}, 11 {"type": "module", "line": 12, "filename": "exports.8.wasm"}, 12 {"type": "module", "line": 13, "filename": "exports.9.wasm"}, 13 {"type": "module", "line": 14, "filename": "exports.10.wasm"}, 14 {"type": "module", "line": 16, "name": "$Func", "filename": "exports.11.wasm"}, 15 {"type": "assert_return", "line": 22, "action": {"type": "invoke", "field": "e", "args": [{"type": "i32", "value": "42"}]}, "expected": [{"type": "i32", "value": "43"}]}, 16 {"type": "assert_return", "line": 23, "action": {"type": "invoke", "module": "$Func", "field": "e", "args": [{"type": "i32", "value": "42"}]}, "expected": [{"type": "i32", "value": "43"}]}, 17 {"type": "module", "line": 24, "filename": "exports.12.wasm"}, 18 {"type": "module", "line": 25, "name": "$Other1", "filename": "exports.13.wasm"}, 19 {"type": "assert_return", "line": 26, "action": {"type": "invoke", "module": "$Func", "field": "e", "args": [{"type": "i32", "value": "42"}]}, "expected": [{"type": "i32", "value": "43"}]}, 20 {"type": "module", "line": 28, "filename": "exports.14.wasm"}, 21 {"type": "assert_return", "line": 34, "action": {"type": "invoke", "field": "a", "args": []}, "expected": [{"type": "i32", "value": "42"}]}, 22 {"type": "assert_return", "line": 35, "action": {"type": "invoke", "field": "b", "args": []}, "expected": [{"type": "i32", "value": "42"}]}, 23 {"type": "assert_return", "line": 36, "action": {"type": "invoke", "field": "c", "args": []}, "expected": [{"type": "i32", "value": "42"}]}, 24 {"type": "assert_invalid", "line": 39, "filename": "exports.15.wasm", "text": "unknown function", "module_type": "binary"}, 25 {"type": "assert_invalid", "line": 43, "filename": "exports.16.wasm", "text": "unknown function", "module_type": "binary"}, 26 {"type": "assert_invalid", "line": 47, "filename": "exports.17.wasm", "text": "unknown function", "module_type": "binary"}, 27 {"type": "assert_invalid", "line": 51, "filename": "exports.18.wasm", "text": "duplicate export name", "module_type": "binary"}, 28 {"type": "assert_invalid", "line": 55, "filename": "exports.19.wasm", "text": "duplicate export name", "module_type": "binary"}, 29 {"type": "assert_invalid", "line": 59, "filename": "exports.20.wasm", "text": "duplicate export name", "module_type": "binary"}, 30 {"type": "assert_invalid", "line": 63, "filename": "exports.21.wasm", "text": "duplicate export name", "module_type": "binary"}, 31 {"type": "assert_invalid", "line": 67, "filename": "exports.22.wasm", "text": "duplicate export name", "module_type": "binary"}, 32 {"type": "module", "line": 74, "filename": "exports.23.wasm"}, 33 {"type": "module", "line": 75, "filename": "exports.24.wasm"}, 34 {"type": "module", "line": 76, "filename": "exports.25.wasm"}, 35 {"type": "module", "line": 78, "filename": "exports.26.wasm"}, 36 {"type": "module", "line": 79, "filename": "exports.27.wasm"}, 37 {"type": "module", "line": 80, "filename": "exports.28.wasm"}, 38 {"type": "module", "line": 81, "filename": "exports.29.wasm"}, 39 {"type": "module", "line": 82, "filename": "exports.30.wasm"}, 40 {"type": "module", "line": 83, "filename": "exports.31.wasm"}, 41 {"type": "module", "line": 85, "name": "$Global", "filename": "exports.32.wasm"}, 42 {"type": "assert_return", "line": 89, "action": {"type": "get", "field": "e"}, "expected": [{"type": "i32", "value": "42"}]}, 43 {"type": "assert_return", "line": 90, "action": {"type": "get", "module": "$Global", "field": "e"}, "expected": [{"type": "i32", "value": "42"}]}, 44 {"type": "module", "line": 91, "filename": "exports.33.wasm"}, 45 {"type": "module", "line": 92, "name": "$Other2", "filename": "exports.34.wasm"}, 46 {"type": "assert_return", "line": 93, "action": {"type": "get", "module": "$Global", "field": "e"}, "expected": [{"type": "i32", "value": "42"}]}, 47 {"type": "assert_invalid", "line": 96, "filename": "exports.35.wasm", "text": "unknown global", "module_type": "binary"}, 48 {"type": "assert_invalid", "line": 100, "filename": "exports.36.wasm", "text": "unknown global", "module_type": "binary"}, 49 {"type": "assert_invalid", "line": 104, "filename": "exports.37.wasm", "text": "unknown global", "module_type": "binary"}, 50 {"type": "assert_invalid", "line": 108, "filename": "exports.38.wasm", "text": "duplicate export name", "module_type": "binary"}, 51 {"type": "assert_invalid", "line": 112, "filename": "exports.39.wasm", "text": "duplicate export name", "module_type": "binary"}, 52 {"type": "assert_invalid", "line": 116, "filename": "exports.40.wasm", "text": "duplicate export name", "module_type": "binary"}, 53 {"type": "assert_invalid", "line": 120, "filename": "exports.41.wasm", "text": "duplicate export name", "module_type": "binary"}, 54 {"type": "assert_invalid", "line": 124, "filename": "exports.42.wasm", "text": "duplicate export name", "module_type": "binary"}, 55 {"type": "module", "line": 131, "filename": "exports.43.wasm"}, 56 {"type": "module", "line": 132, "filename": "exports.44.wasm"}, 57 {"type": "module", "line": 133, "filename": "exports.45.wasm"}, 58 {"type": "module", "line": 135, "filename": "exports.46.wasm"}, 59 {"type": "module", "line": 136, "filename": "exports.47.wasm"}, 60 {"type": "module", "line": 137, "filename": "exports.48.wasm"}, 61 {"type": "module", "line": 138, "filename": "exports.49.wasm"}, 62 {"type": "module", "line": 139, "filename": "exports.50.wasm"}, 63 {"type": "module", "line": 140, "filename": "exports.51.wasm"}, 64 {"type": "module", "line": 141, "filename": "exports.52.wasm"}, 65 {"type": "module", "line": 142, "filename": "exports.53.wasm"}, 66 {"type": "module", "line": 143, "filename": "exports.54.wasm"}, 67 {"type": "module", "line": 144, "filename": "exports.55.wasm"}, 68 {"type": "module", "line": 145, "filename": "exports.56.wasm"}, 69 {"type": "module", "line": 146, "filename": "exports.57.wasm"}, 70 {"type": "assert_invalid", "line": 151, "filename": "exports.58.wasm", "text": "unknown table", "module_type": "binary"}, 71 {"type": "assert_invalid", "line": 155, "filename": "exports.59.wasm", "text": "unknown table", "module_type": "binary"}, 72 {"type": "assert_invalid", "line": 159, "filename": "exports.60.wasm", "text": "unknown table", "module_type": "binary"}, 73 {"type": "assert_invalid", "line": 163, "filename": "exports.61.wasm", "text": "duplicate export name", "module_type": "binary"}, 74 {"type": "assert_invalid", "line": 167, "filename": "exports.62.wasm", "text": "duplicate export name", "module_type": "binary"}, 75 {"type": "assert_invalid", "line": 171, "filename": "exports.63.wasm", "text": "duplicate export name", "module_type": "binary"}, 76 {"type": "assert_invalid", "line": 175, "filename": "exports.64.wasm", "text": "duplicate export name", "module_type": "binary"}, 77 {"type": "assert_invalid", "line": 179, "filename": "exports.65.wasm", "text": "duplicate export name", "module_type": "binary"}, 78 {"type": "module", "line": 186, "filename": "exports.66.wasm"}, 79 {"type": "module", "line": 187, "filename": "exports.67.wasm"}, 80 {"type": "module", "line": 191, "filename": "exports.68.wasm"}, 81 {"type": "module", "line": 192, "filename": "exports.69.wasm"}, 82 {"type": "module", "line": 193, "filename": "exports.70.wasm"}, 83 {"type": "module", "line": 194, "filename": "exports.71.wasm"}, 84 {"type": "module", "line": 195, "filename": "exports.72.wasm"}, 85 {"type": "module", "line": 196, "filename": "exports.73.wasm"}, 86 {"type": "module", "line": 197, "filename": "exports.74.wasm"}, 87 {"type": "module", "line": 198, "filename": "exports.75.wasm"}, 88 {"type": "module", "line": 199, "filename": "exports.76.wasm"}, 89 {"type": "module", "line": 200, "filename": "exports.77.wasm"}, 90 {"type": "module", "line": 201, "filename": "exports.78.wasm"}, 91 {"type": "module", "line": 202, "filename": "exports.79.wasm"}, 92 {"type": "assert_invalid", "line": 207, "filename": "exports.80.wasm", "text": "unknown memory", "module_type": "binary"}, 93 {"type": "assert_invalid", "line": 211, "filename": "exports.81.wasm", "text": "unknown memory", "module_type": "binary"}, 94 {"type": "assert_invalid", "line": 215, "filename": "exports.82.wasm", "text": "unknown memory", "module_type": "binary"}, 95 {"type": "assert_invalid", "line": 219, "filename": "exports.83.wasm", "text": "duplicate export name", "module_type": "binary"}, 96 {"type": "assert_invalid", "line": 228, "filename": "exports.84.wasm", "text": "duplicate export name", "module_type": "binary"}, 97 {"type": "assert_invalid", "line": 232, "filename": "exports.85.wasm", "text": "duplicate export name", "module_type": "binary"}, 98 {"type": "assert_invalid", "line": 236, "filename": "exports.86.wasm", "text": "duplicate export name", "module_type": "binary"}]}