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

Function TestPrefix

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

Source from the content-addressed store, hash-verified

817}
818
819func TestPrefix(t *testing.T) {
820 t.Parallel()
821
822 NewExecutorTest(t,
823 WithName("up to date"),
824 WithExecutorOptions(
825 task.WithDir("testdata/prefix_uptodate"),
826 task.WithOutputStyle(ast.Output{Name: "prefixed"}),
827 ),
828 WithTask("foo"),
829 )
830
831 NewExecutorTest(t,
832 WithName("up to dat with no output style"),
833 WithExecutorOptions(
834 task.WithDir("testdata/prefix_uptodate"),
835 ),
836 WithTask("foo"),
837 )
838}
839
840func TestPromptInSummary(t *testing.T) {
841 t.Parallel()

Callers

nothing calls this directly

Calls 4

NewExecutorTestFunction · 0.85
WithNameFunction · 0.85
WithExecutorOptionsFunction · 0.85
WithTaskFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…