(t *testing.T)
| 15 | ) |
| 16 | |
| 17 | func TestSetEnv(t *testing.T) { |
| 18 | a := assert.New(t) |
| 19 | ctx := context.Background() |
| 20 | rc := new(RunContext) |
| 21 | rc.Env = map[string]string{"ACTIONS_ALLOW_UNSECURE_COMMANDS": "true"} |
| 22 | handler := rc.commandHandler(ctx) |
| 23 | |
| 24 | handler("::set-env name=x::valz\n") |
| 25 | a.Equal("valz", rc.Env["x"]) |
| 26 | } |
| 27 | |
| 28 | func TestSetEnvBlocked(t *testing.T) { |
| 29 | a := assert.New(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…