MCPcopy
hub / github.com/go-task/task / TestLabel

Function TestLabel

executor_test.go:764–817  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

762}
763
764func 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
819func TestPrefix(t *testing.T) {
820 t.Parallel()

Callers

nothing calls this directly

Calls 6

NewExecutorTestFunction · 0.85
WithNameFunction · 0.85
WithExecutorOptionsFunction · 0.85
WithTaskFunction · 0.85
WithStatusErrorFunction · 0.85
WithRunErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…