MCPcopy
hub / github.com/containerd/containerd / TestBinaryIOArgs

Function TestBinaryIOArgs

pkg/cio/io_test.go:41–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

39}
40
41func 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
49func TestBinaryIOAbsolutePath(t *testing.T) {
50 res, err := BinaryIO(prefix+"/full/path/bin", nil)("!")

Callers

nothing calls this directly

Calls 2

BinaryIOFunction · 0.85
ConfigMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…