MCPcopy Index your code
hub / github.com/dnote/dnote / MustWaitDnoteCmd

Function MustWaitDnoteCmd

pkg/cli/testutils/main.go:219–226  ·  view source on GitHub ↗
(t *testing.T, opts RunDnoteCmdOptions, runFunc func(io.Reader, io.WriteCloser) error, binaryName string, arg ...string)

Source from the content-addressed store, hash-verified

217}
218
219func MustWaitDnoteCmd(t *testing.T, opts RunDnoteCmdOptions, runFunc func(io.Reader, io.WriteCloser) error, binaryName string, arg ...string) string {
220 output, err := WaitDnoteCmd(t, opts, runFunc, binaryName, arg...)
221 if err != nil {
222 t.Fatal(err)
223 }
224
225 return output
226}
227
228// MustWaitForPrompt waits for an expected prompt with a default timeout.
229// Fails the test if the prompt is not found or an error occurs.

Callers 3

TestAddNoteFunction · 0.92
TestRemoveNoteFunction · 0.92
TestRemoveBookFunction · 0.92

Calls 1

WaitDnoteCmdFunction · 0.85

Tested by 3

TestAddNoteFunction · 0.74
TestRemoveNoteFunction · 0.74
TestRemoveBookFunction · 0.74