(t *testing.T)
| 34 | } |
| 35 | |
| 36 | func 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 | |
| 46 | func TestResolveInlineOrFileBytes_AtStdin(t *testing.T) { |
| 47 | got, err := resolveInlineOrFileBytes("@-", strings.NewReader(`{"from":"@-"}`)) |
nothing calls this directly
no test coverage detected