We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2165bd commit 8fe9782Copy full SHA for 8fe9782
1 file changed
context_test.go
@@ -111,12 +111,22 @@ func TestEnvsubst(t *testing.T) {
111
t.Fail()
112
}
113
114
+ if s, err := c.Envsubst("start${!example:-default}end"); s != "start${example:-default}end" || err != nil {
115
+ t.Fail()
116
+ }
117
+
118
c.Setenv("example", "value")
119
if s, err := c.Envsubst("start${example}end"); s != "startvalueend" || err != nil {
120
121
122
+ if s, err := c.Envsubst("start${!example}end"); s != "start${example}end" || err != nil {
123
124
125
126
if s, err := c.Envsubst("start${example:-default}end"); s != "startvalueend" || err != nil {
127
128
129
130
131
132
0 commit comments