(ctx context.Context, runtime wazero.Runtime, filePath string)
| 85 | } |
| 86 | |
| 87 | func loadModule(ctx context.Context, runtime wazero.Runtime, filePath string) (api.Module, error) { |
| 88 | b, err := os.ReadFile(filePath) |
| 89 | if err != nil { |
| 90 | return nil, err |
| 91 | } |
| 92 | return runtime.Instantiate(ctx, b) |
| 93 | } |
no test coverage detected