MCPcopy Index your code
hub / github.com/go-task/task / WithInput

Function WithInput

executor_test.go:79–81  ·  view source on GitHub ↗

Functional options WithInput tells the test to create a reader with the given input. This can be used to simulate user input when a task requires it.

(input string)

Source from the content-addressed store, hash-verified

77// WithInput tells the test to create a reader with the given input. This can be
78// used to simulate user input when a task requires it.
79func WithInput(input string) ExecutorTestOption {
80 return &inputTestOption{input}
81}
82
83type inputTestOption struct {
84 input string

Callers 3

TestPromptInSummaryFunction · 0.85
TestPromptAssumeYesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…