MCPcopy Create free account
hub / github.com/go-task/task / TestIncludesIncorrect

Function TestIncludesIncorrect

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

Source from the content-addressed store, hash-verified

1223}
1224
1225func TestIncludesIncorrect(t *testing.T) {
1226 t.Parallel()
1227
1228 const dir = "testdata/includes_incorrect"
1229
1230 var buff bytes.Buffer
1231 e := task.NewExecutor(
1232 task.WithDir(dir),
1233 task.WithStdout(&buff),
1234 task.WithStderr(&buff),
1235 task.WithSilent(true),
1236 )
1237
1238 err := e.Setup()
1239 require.Error(t, err)
1240 assert.Contains(t, err.Error(), "Failed to parse testdata/includes_incorrect/incomplete.yml:", err.Error())
1241}
1242
1243func TestIncludesMissingTaskfile(t *testing.T) {
1244 t.Parallel()

Callers

nothing calls this directly

Calls 2

SetupMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…