MCPcopy Index your code
hub / github.com/containerd/containerd / TestBinaryIOAbsolutePath

Function TestBinaryIOAbsolutePath

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

Source from the content-addressed store, hash-verified

47}
48
49func TestBinaryIOAbsolutePath(t *testing.T) {
50 res, err := BinaryIO(prefix+"/full/path/bin", nil)("!")
51 require.NoError(t, err)
52
53 // Test parse back
54 parsed, err := url.Parse(res.Config().Stdout)
55 require.NoError(t, err)
56 assert.Equal(t, "binary", parsed.Scheme)
57 assert.Equal(t, urlPrefix+"/full/path/bin", parsed.Path)
58}
59
60func TestBinaryIOFailOnRelativePath(t *testing.T) {
61 _, err := BinaryIO("./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…