(t *testing.T)
| 109 | } |
| 110 | |
| 111 | func TestResolveInputFlags_NoInputSpec(t *testing.T) { |
| 112 | rctx := newTestRuntimeWithStdin(map[string]string{"token": "@something"}, "") |
| 113 | flags := []Flag{{Name: "token"}} // no Input |
| 114 | |
| 115 | if err := resolveInputFlags(rctx, flags); err != nil { |
| 116 | t.Fatalf("unexpected error: %v", err) |
| 117 | } |
| 118 | // value should be unchanged — no resolution |
| 119 | if got := rctx.Str("token"); got != "@something" { |
| 120 | t.Errorf("expected %q, got %q", "@something", got) |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | func TestResolveInputFlags_StdinNotSupported(t *testing.T) { |
| 125 | rctx := newTestRuntimeWithStdin(map[string]string{"data": "-"}, "stdin data") |
nothing calls this directly
no test coverage detected