(t *testing.T)
| 53 | } |
| 54 | |
| 55 | func 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 | |
| 65 | func TestInterpolateWithDefaults(t *testing.T) { |
| 66 | t.Setenv("FOO", "BARZ") |
nothing calls this directly
no test coverage detected
searching dependent graphs…