(t *testing.T)
| 762 | } |
| 763 | |
| 764 | func TestLabel(t *testing.T) { |
| 765 | t.Parallel() |
| 766 | |
| 767 | NewExecutorTest(t, |
| 768 | WithName("up to date"), |
| 769 | WithExecutorOptions( |
| 770 | task.WithDir("testdata/label_uptodate"), |
| 771 | ), |
| 772 | WithTask("foo"), |
| 773 | ) |
| 774 | |
| 775 | NewExecutorTest(t, |
| 776 | WithName("summary"), |
| 777 | WithExecutorOptions( |
| 778 | task.WithDir("testdata/label_summary"), |
| 779 | task.WithSummary(true), |
| 780 | ), |
| 781 | WithTask("foo"), |
| 782 | ) |
| 783 | |
| 784 | NewExecutorTest(t, |
| 785 | WithName("status"), |
| 786 | WithExecutorOptions( |
| 787 | task.WithDir("testdata/label_status"), |
| 788 | ), |
| 789 | WithTask("foo"), |
| 790 | WithStatusError(), |
| 791 | ) |
| 792 | |
| 793 | NewExecutorTest(t, |
| 794 | WithName("var"), |
| 795 | WithExecutorOptions( |
| 796 | task.WithDir("testdata/label_var"), |
| 797 | ), |
| 798 | WithTask("foo"), |
| 799 | ) |
| 800 | |
| 801 | NewExecutorTest(t, |
| 802 | WithName("label in summary"), |
| 803 | WithExecutorOptions( |
| 804 | task.WithDir("testdata/label_summary"), |
| 805 | ), |
| 806 | WithTask("foo"), |
| 807 | ) |
| 808 | |
| 809 | NewExecutorTest(t, |
| 810 | WithName("label in error"), |
| 811 | WithExecutorOptions( |
| 812 | task.WithDir("testdata/label_error"), |
| 813 | ), |
| 814 | WithTask("foo"), |
| 815 | WithRunError(), |
| 816 | ) |
| 817 | } |
| 818 | |
| 819 | func TestPrefix(t *testing.T) { |
| 820 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…