(t *testing.T)
| 66 | } |
| 67 | |
| 68 | func TestAddpath(t *testing.T) { |
| 69 | a := assert.New(t) |
| 70 | ctx := context.Background() |
| 71 | rc := new(RunContext) |
| 72 | rc.Env = map[string]string{"ACTIONS_ALLOW_UNSECURE_COMMANDS": "true"} |
| 73 | handler := rc.commandHandler(ctx) |
| 74 | |
| 75 | handler("::add-path::/zoo\n") |
| 76 | a.Equal("/zoo", rc.ExtraPath[0]) |
| 77 | |
| 78 | handler("::add-path::/boo\n") |
| 79 | a.Equal("/boo", rc.ExtraPath[0]) |
| 80 | } |
| 81 | |
| 82 | func TestAddPathBlocked(t *testing.T) { |
| 83 | a := assert.New(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…