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

Function TestResolveInlineOrFileBytes_Stdin

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

Source from the content-addressed store, hash-verified

34}
35
36func TestResolveInlineOrFileBytes_Stdin(t *testing.T) {
37 got, err := resolveInlineOrFileBytes("-", strings.NewReader(`{"from":"stdin"}`))
38 if err != nil {
39 t.Fatalf("resolve: %v", err)
40 }
41 if string(got) != `{"from":"stdin"}` {
42 t.Fatalf("unexpected: %q", string(got))
43 }
44}
45
46func TestResolveInlineOrFileBytes_AtStdin(t *testing.T) {
47 got, err := resolveInlineOrFileBytes("@-", strings.NewReader(`{"from":"@-"}`))

Callers

nothing calls this directly

Calls 1

resolveInlineOrFileBytesFunction · 0.85

Tested by

no test coverage detected