<commit_before><commit_msg>Split test case `cat3-too-mediumcut.cwl`<commit_after>package cwlgotest

import (
        "testing"

        cwl "github.com/otiai10/cwl.go"
        . "github.com/otiai10/mint"
)

func TestDecode_cat3_tool_mediumcut(t *testing.T) {
        f := load("cat3-tool-mediumcut.cwl")
        root := cwl.NewCWL()
        Expect(t, root).TypeOf("*cwl.Root")
        err := root.Decode(f)
        Expect(t, err).ToBe(nil)
        Expect(t, root.Version).ToBe("v1.0")
        Expect(t, root.Doc).ToBe("Print the contents of a file to stdout using 'cat' running in a docker container.")
        Expect(t, root.Class).ToBe("CommandLineTool")
        Expect(t, len(root.BaseCommands)).ToBe(1)
        Expect(t, root.BaseCommands[0]).ToBe("cat")
        Expect(t, root.Stdout).ToBe("cat-out")
        Expect(t, root.Hints).TypeOf("cwl.Hints")
        Expect(t, root.Hints[0].Class).ToBe("DockerRequirement")
        Expect(t, root.Hints[0].DockerPull).ToBe("debian:wheezy")
        Expect(t, len(root.Inputs)).ToBe(1)
        Expect(t, root.Inputs[0].ID).ToBe("file1")
        Expect(t, root.Inputs[0].Types[0].Type).ToBe("File")
        Expect(t, root.Inputs[0].Label).ToBe("Input File")
        Expect(t, root.Inputs[0].Doc).ToBe("The file that will be copied using 'cat'")
        Expect(t, root.Inputs[0].Binding.Position).ToBe(1)
}

{'fraction_non_alphanumeric': 0.17555555555555555, 'fraction_numerical': 0.016296296296296295, 'mean_word_length': 3.0449101796407185, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4871855', 'n_tokens_mistral': 498, 'n_tokens_neox': 499, 'n_words': 75}