(t *testing.T)
| 193 | } |
| 194 | |
| 195 | func TestResolveInputFlags_EscapeDoubleAt(t *testing.T) { |
| 196 | rctx := newTestRuntimeWithStdin(map[string]string{"text": "@@@triple"}, "") |
| 197 | flags := []Flag{{Name: "text", Input: []string{File, Stdin}}} |
| 198 | |
| 199 | if err := resolveInputFlags(rctx, flags); err != nil { |
| 200 | t.Fatalf("unexpected error: %v", err) |
| 201 | } |
| 202 | // @@@ → strip first @, remaining is @@triple which is literal |
| 203 | if got := rctx.Str("text"); got != "@@triple" { |
| 204 | t.Errorf("expected %q, got %q", "@@triple", got) |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | func TestResolveInputFlags_DuplicateStdin(t *testing.T) { |
| 209 | rctx := newTestRuntimeWithStdin(map[string]string{"a": "-", "b": "-"}, "data") |
nothing calls this directly
no test coverage detected