(t *testing.T)
| 97 | } |
| 98 | |
| 99 | func TestResolveInputFlags_EmptyInput(t *testing.T) { |
| 100 | rctx := newTestRuntimeWithStdin(map[string]string{"markdown": ""}, "") |
| 101 | flags := []Flag{{Name: "markdown", Input: []string{File, Stdin}}} |
| 102 | |
| 103 | if err := resolveInputFlags(rctx, flags); err != nil { |
| 104 | t.Fatalf("unexpected error: %v", err) |
| 105 | } |
| 106 | if got := rctx.Str("markdown"); got != "" { |
| 107 | t.Errorf("expected empty, got %q", got) |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | func TestResolveInputFlags_NoInputSpec(t *testing.T) { |
| 112 | rctx := newTestRuntimeWithStdin(map[string]string{"token": "@something"}, "") |
nothing calls this directly
no test coverage detected