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

Function TestInvalidInterpolation

cli/compose/interpolation/interpolation_test.go:55–63  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

53}
54
55func TestInvalidInterpolation(t *testing.T) {
56 services := map[string]any{
57 "servicea": map[string]any{
58 "image": "${",
59 },
60 }
61 _, err := Interpolate(services, Options{LookupValue: defaultMapping})
62 assert.Error(t, err, `invalid interpolation format for servicea.image: "${"; you may need to escape any $ with another $`)
63}
64
65func TestInterpolateWithDefaults(t *testing.T) {
66 t.Setenv("FOO", "BARZ")

Callers

nothing calls this directly

Calls 2

InterpolateFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…