MCPcopy
hub / github.com/nektos/act / TestAddpathADO

Function TestAddpathADO

pkg/runner/command_test.go:118–130  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

116}
117
118func 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
132func TestAddmask(t *testing.T) {
133 logger, hook := test.NewNullLogger()

Callers

nothing calls this directly

Calls 1

commandHandlerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…