(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestGenerateInjectedScript(t *testing.T) { |
| 51 | res := generateInjectedScript([]string{"export FOO=world", "export BAR=baz"}, |
| 52 | []string{`echo "Hello $FOO"`, "sleep 5"}) |
| 53 | assert.Equal(t, "#!/bin/bash\n"+ |
| 54 | "export FOO=world\n"+ |
| 55 | "export BAR=baz\n"+ |
| 56 | `echo "Hello $FOO"`+"\n"+ |
| 57 | "sleep 5\n", string(res)) |
| 58 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…