MCPcopy Index your code
hub / github.com/container2wasm/container2wasm / WantString

Function WantString

tests/integration/utils/utils.go:254–260  ·  view source on GitHub ↗
(wantstr string)

Source from the content-addressed store, hash-verified

252}
253
254func WantString(wantstr string) func(t *testing.T, env Env, in io.Writer, out io.Reader) {
255 return func(t *testing.T, env Env, in io.Writer, out io.Reader) {
256 outstr, err := io.ReadAll(out)
257 assert.NilError(t, err)
258 assert.Equal(t, string(outstr), wantstr)
259 }
260}
261
262func wantPrompt(withExit bool, contains bool, prompt string, inputoutput ...[2]string) func(t *testing.T, env Env, in io.Writer, out io.Reader) {
263 return func(t *testing.T, env Env, in io.Writer, out io.Reader) {

Callers 6

TestWasmtimeFunction · 0.92
TestWasmedgeFunction · 0.92
TestWasmerFunction · 0.92
TestWamrFunction · 0.92
TestToolsFunction · 0.92
TestWazeroFunction · 0.92

Calls

no outgoing calls

Tested by 6

TestWasmtimeFunction · 0.74
TestWasmedgeFunction · 0.74
TestWasmerFunction · 0.74
TestWamrFunction · 0.74
TestToolsFunction · 0.74
TestWazeroFunction · 0.74