Skip to content

Commit 541c544

Browse files
authored
Merge pull request #1095 from thewtex/wasi-test-default
Wasi test default
2 parents 916b698 + b835a15 commit 541c544

File tree

86 files changed

+635
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+635
-3
lines changed

packages/compare-images/python/itkwasm-compare-images-wasi/tests/__init__.py

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from pathlib import Path
2+
3+
test_input_path = Path(__file__).parent / ".." / ".." / ".." / "test" / "data" / "input"
4+
test_baseline_path = Path(__file__).parent / ".." / ".." / ".." / "test" / "data" / "baseline"
5+
test_output_path = Path(__file__).parent / ".." / ".." / ".." / "test" / "data" / "output" / "python"
6+
test_output_path.mkdir(parents=True, exist_ok=True)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Generated file. To retain edits, remove this comment.
2+
3+
from itkwasm_compare_images_wasi import compare_double_images
4+
5+
from .common import test_input_path, test_output_path
6+
7+
def test_compare_double_images():
8+
pass
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Generated file. To retain edits, remove this comment.
2+
3+
from itkwasm_compare_images_wasi import vector_magnitude
4+
5+
from .common import test_input_path, test_output_path
6+
7+
def test_vector_magnitude():
8+
pass

packages/compress-stringify/python/itkwasm-compress-stringify-wasi/tests/__init__.py

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from pathlib import Path
2+
3+
test_input_path = Path(__file__).parent / ".." / ".." / ".." / "test" / "data" / "input"
4+
test_baseline_path = Path(__file__).parent / ".." / ".." / ".." / "test" / "data" / "baseline"
5+
test_output_path = Path(__file__).parent / ".." / ".." / ".." / "test" / "data" / "output" / "python"
6+
test_output_path.mkdir(parents=True, exist_ok=True)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Generated file. To retain edits, remove this comment.
2+
3+
from itkwasm_compress_stringify_wasi import compress_stringify
4+
5+
from .common import test_input_path, test_output_path
6+
7+
def test_compress_stringify():
8+
pass
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Generated file. To retain edits, remove this comment.
2+
3+
from itkwasm_compress_stringify_wasi import parse_string_decompress
4+
5+
from .common import test_input_path, test_output_path
6+
7+
def test_parse_string_decompress():
8+
pass

packages/core/typescript/itk-wasm/src/pipeline/pipelines-query-params.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import RunPipelineOptions from "./run-pipeline-options"
1+
import RunPipelineOptions from './run-pipeline-options'
22

33
let pipelinesQueryParams: RunPipelineOptions['pipelineQueryParams'] | undefined
44

packages/core/typescript/itk-wasm/src/pipeline/run-pipeline.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async function runPipeline (
9797
const pipelineModule = await loadPipelineModule(
9898
pipelinePath.toString(),
9999
options?.pipelineBaseUrl,
100-
options?.pipelineQueryParams ?? defaultPipelinesQueryParams(),
100+
options?.pipelineQueryParams ?? defaultPipelinesQueryParams()
101101
)
102102
const result = runPipelineEmscripten(pipelineModule, args, outputs, inputs)
103103
return result
@@ -108,7 +108,7 @@ async function runPipeline (
108108
const { workerProxy, worker: usedWorker } = await createWorkerProxy(
109109
worker as Worker | null,
110110
pipelineWorkerUrlString as string | undefined | null,
111-
options?.pipelineQueryParams ?? defaultPipelinesQueryParams(),
111+
options?.pipelineQueryParams ?? defaultPipelinesQueryParams()
112112
)
113113
worker = usedWorker
114114
const transferables: Array<ArrayBuffer | TypedArray | null> = []

0 commit comments

Comments
 (0)