MCPcopy
hub / github.com/docker/docker-agent / TestRunJavascript_no_result

Function TestRunJavascript_no_result

pkg/tools/codemode/exec_test.go:46–56  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func TestRunJavascript_no_result(t *testing.T) {
47 t.Parallel()
48 tool := &codeModeTool{}
49
50 result, err := tool.runJavascript(t.Context(), ``)
51 require.NoError(t, err)
52
53 assert.Empty(t, result.Value)
54 assert.Empty(t, result.StdOut)
55 assert.Empty(t, result.StdErr)
56}

Callers

nothing calls this directly

Calls 2

runJavascriptMethod · 0.95
ContextMethod · 0.80

Tested by

no test coverage detected