From 4ccc9cf0a0f56f931c79b42df078ac313bd0b5b7 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 27 Nov 2025 16:27:21 +0000 Subject: tests: Test reader end-to-end, don't test specific functions. This makes the tests less fragile—that is, less subject to breakage due to code refactoring. And, we can be more confident that the reader actually works end-to-end. --- test-data/foo | 0 test-data/input-file-with-location-only.yaml | 3 ++ test-data/input-file-with-path-only.yaml | 3 ++ test-data/workflow-with-a-file-input.cwl | 4 +++ .../workflow-with-various-file-type-formals.cwl | 39 ++++++++++++++++++++++ 5 files changed, 49 insertions(+) create mode 100644 test-data/foo create mode 100644 test-data/input-file-with-location-only.yaml create mode 100644 test-data/input-file-with-path-only.yaml create mode 100644 test-data/workflow-with-a-file-input.cwl create mode 100644 test-data/workflow-with-various-file-type-formals.cwl (limited to 'test-data') diff --git a/test-data/foo b/test-data/foo new file mode 100644 index 0000000..e69de29 diff --git a/test-data/input-file-with-location-only.yaml b/test-data/input-file-with-location-only.yaml new file mode 100644 index 0000000..dccb850 --- /dev/null +++ b/test-data/input-file-with-location-only.yaml @@ -0,0 +1,3 @@ +foo: + class: File + location: foo diff --git a/test-data/input-file-with-path-only.yaml b/test-data/input-file-with-path-only.yaml new file mode 100644 index 0000000..04fdfcd --- /dev/null +++ b/test-data/input-file-with-path-only.yaml @@ -0,0 +1,3 @@ +foo: + class: File + path: foo diff --git a/test-data/workflow-with-a-file-input.cwl b/test-data/workflow-with-a-file-input.cwl new file mode 100644 index 0000000..ba3ab95 --- /dev/null +++ b/test-data/workflow-with-a-file-input.cwl @@ -0,0 +1,4 @@ +class: Workflow +inputs: + foo: File +outputs: [] diff --git a/test-data/workflow-with-various-file-type-formals.cwl b/test-data/workflow-with-various-file-type-formals.cwl new file mode 100644 index 0000000..762bf9f --- /dev/null +++ b/test-data/workflow-with-various-file-type-formals.cwl @@ -0,0 +1,39 @@ +class: Workflow +inputs: + infoo: + type: File + secondaryFiles: + - .bai + inbar: + type: + type: array + items: File + secondaryFiles: + - .bai + infoobar: + type: + type: array + items: + type: array + items: File + secondaryFiles: + - .bai +outputs: + outfoo: + type: File + secondaryFiles: + - .bai + outbar: + type: + type: array + items: File + secondaryFiles: + - .bai + outfoobar: + type: + type: array + items: + type: array + items: File + secondaryFiles: + - .bai -- cgit 1.4.1