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

Function TestGitignoreIncludedOverride

task_test.go:778–789  ·  view source on GitHub ↗

TestGitignoreIncludedOverride checks that an explicit use_gitignore: false in an included Taskfile is preserved even when the root Taskfile sets it to true.

(t *testing.T)

Source from the content-addressed store, hash-verified

776// TestGitignoreIncludedOverride checks that an explicit use_gitignore: false in
777// an included Taskfile is preserved even when the root Taskfile sets it to true.
778func TestGitignoreIncludedOverride(t *testing.T) { //nolint:paralleltest // mutates fixture files
779 gitignoreSeq{
780 dir: "testdata/gitignore_included_override",
781 task: "included:build",
782 create: map[string]string{"ignored.txt": "ignored\n"},
783 steps: []gitignoreStep{
784 {run: "first run"},
785 {run: "up to date"},
786 {run: "ignored file modified", write: map[string]string{"ignored.txt": "ignored modified\n"}},
787 },
788 }.run(t)
789}
790
791func TestGitignoreTaskListFallback(t *testing.T) { //nolint:paralleltest // shares testdata/gitignore with TestGitignoreChecksum
792 const dir = "testdata/gitignore"

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…