MCPcopy Create free account
hub / github.com/docker/docker-agent / TestExec_OpenAI_ToolCall

Function TestExec_OpenAI_ToolCall

e2e/exec_test.go:37–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35}
36
37func TestExec_OpenAI_ToolCall(t *testing.T) {
38 t.Parallel()
39 out := runCLI(t, "run", "--exec", "testdata/fs_tools.yaml", "How many files in testdata/working_dir? Only output the number.")
40
41 require.Equal(t, "\nCalling list_directory(path: \"testdata/working_dir\")\n\nlist_directory response → \"FILE README.me\\n\"\n1", out)
42}
43
44func TestExec_OpenAI_HideToolCalls(t *testing.T) {
45 t.Parallel()

Callers

nothing calls this directly

Calls 1

runCLIFunction · 0.85

Tested by

no test coverage detected