MCPcopy Create free account
hub / github.com/openclaw/gogcli / TestResolveInlineOrFileBytes_AtStdin

Function TestResolveInlineOrFileBytes_AtStdin

internal/cmd/input_spec_test.go:46–54  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func TestResolveInlineOrFileBytes_AtStdin(t *testing.T) {
47 got, err := resolveInlineOrFileBytes("@-", strings.NewReader(`{"from":"@-"}`))
48 if err != nil {
49 t.Fatalf("resolve: %v", err)
50 }
51 if string(got) != `{"from":"@-"}` {
52 t.Fatalf("unexpected: %q", string(got))
53 }
54}

Callers

nothing calls this directly

Calls 1

resolveInlineOrFileBytesFunction · 0.85

Tested by

no test coverage detected