MCPcopy
hub / github.com/docker/compose / TestBuildNamedPipeMount

Function TestBuildNamedPipeMount

pkg/compose/create_test.go:56–66  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

54}
55
56func TestBuildNamedPipeMount(t *testing.T) {
57 project := composetypes.Project{}
58 volume := composetypes.ServiceVolumeConfig{
59 Type: composetypes.VolumeTypeNamedPipe,
60 Source: "\\\\.\\pipe\\docker_engine_windows",
61 Target: "\\\\.\\pipe\\docker_engine",
62 }
63 mount, err := buildMount(project, volume)
64 assert.NilError(t, err)
65 assert.Equal(t, mount.Type, mountTypes.TypeNamedPipe)
66}
67
68func TestBuildVolumeMount(t *testing.T) {
69 project := composetypes.Project{

Callers

nothing calls this directly

Calls 1

buildMountFunction · 0.85

Tested by

no test coverage detected