MCPcopy
hub / github.com/go-task/task / TestCyclicDep

Function TestCyclicDep

task_test.go:886–900  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

884}
885
886func TestCyclicDep(t *testing.T) {
887 t.Parallel()
888
889 const dir = "testdata/cyclic"
890
891 e := task.NewExecutor(
892 task.WithDir(dir),
893 task.WithStdout(io.Discard),
894 task.WithStderr(io.Discard),
895 )
896 require.NoError(t, e.Setup())
897 err := e.Run(t.Context(), &task.Call{Task: "task-1"})
898 var taskCalledTooManyTimesError *errors.TaskCalledTooManyTimesError
899 assert.ErrorAs(t, err, &taskCalledTooManyTimesError)
900}
901
902func TestTaskVersion(t *testing.T) {
903 t.Parallel()

Callers

nothing calls this directly

Calls 2

SetupMethod · 0.95
RunMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…