(t *testing.T)
| 39 | } |
| 40 | |
| 41 | func TestBinaryIOArgs(t *testing.T) { |
| 42 | res, err := BinaryIO(prefix+"/file.bin", map[string]string{"id": "1"})("") |
| 43 | require.NoError(t, err) |
| 44 | expected := fmt.Sprintf("binary://%s/file.bin?id=1", urlPrefix) |
| 45 | assert.Equal(t, expected, res.Config().Stdout) |
| 46 | assert.Equal(t, expected, res.Config().Stderr) |
| 47 | } |
| 48 | |
| 49 | func TestBinaryIOAbsolutePath(t *testing.T) { |
| 50 | res, err := BinaryIO(prefix+"/full/path/bin", nil)("!") |