(t *testing.T)
| 116 | } |
| 117 | |
| 118 | func TestAddpathADO(t *testing.T) { |
| 119 | a := assert.New(t) |
| 120 | ctx := context.Background() |
| 121 | rc := new(RunContext) |
| 122 | rc.Env = map[string]string{"ACTIONS_ALLOW_UNSECURE_COMMANDS": "true"} |
| 123 | handler := rc.commandHandler(ctx) |
| 124 | |
| 125 | handler("##[add-path]/zoo\n") |
| 126 | a.Equal("/zoo", rc.ExtraPath[0]) |
| 127 | |
| 128 | handler("##[add-path]/boo\n") |
| 129 | a.Equal("/boo", rc.ExtraPath[0]) |
| 130 | } |
| 131 | |
| 132 | func TestAddmask(t *testing.T) { |
| 133 | logger, hook := test.NewNullLogger() |
nothing calls this directly
no test coverage detected
searching dependent graphs…