MCPcopy Create free account
hub / github.com/docker/cli / TestLoadBindMountSourceMustNotBeEmpty

Function TestLoadBindMountSourceMustNotBeEmpty

cli/compose/loader/loader_test.go:1039–1050  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1037}
1038
1039func TestLoadBindMountSourceMustNotBeEmpty(t *testing.T) {
1040 _, err := loadYAML(`
1041version: "3.5"
1042services:
1043 tmpfs:
1044 image: nginx:latest
1045 volumes:
1046 - type: bind
1047 target: /app
1048`)
1049 assert.Check(t, is.Error(err, `invalid mount config for type "bind": field Source must not be empty`))
1050}
1051
1052func TestLoadBindMountSourceIsWindowsAbsolute(t *testing.T) {
1053 tests := []struct {

Callers

nothing calls this directly

Calls 2

loadYAMLFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…