(t *testing.T)
| 710 | } |
| 711 | |
| 712 | func 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. |
nothing calls this directly
no test coverage detected
searching dependent graphs…