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

Function TestGitignoreChecksum

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

Source from the content-addressed store, hash-verified

710}
711
712func TestGitignoreChecksum(t *testing.T) { //nolint:paralleltest // shares testdata/gitignore and mutates fixture files
713 gitignoreSeq{
714 dir: "testdata/gitignore",
715 task: "build",
716 create: map[string]string{"ignored.txt": "ignored\n"},
717 restore: map[string]string{"source.txt": "source content\n"},
718 artifacts: []string{"generated.txt"},
719 steps: []gitignoreStep{
720 {run: "first run"},
721 {run: "up to date"},
722 {run: "ignored file modified", write: map[string]string{"ignored.txt": "ignored modified\n"}},
723 {run: "source file modified", write: map[string]string{"source.txt": "source modified\n"}},
724 },
725 }.run(t)
726}
727
728// TestGitignoreNegation checks that a `!pattern` in a nested .gitignore
729// re-includes a file excluded by a parent .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…