(t *testing.T)
| 88 | } |
| 89 | |
| 90 | func TestReadStdin(t *testing.T) { |
| 91 | fn, err := ReadStdin("./testdata/test.txt") |
| 92 | if err != nil { |
| 93 | t.Fatal(err) |
| 94 | } |
| 95 | |
| 96 | if string(fn) != "This is a test file" { |
| 97 | t.Fatal(err) |
| 98 | } |
| 99 | |
| 100 | _, err = ReadStdin("-") |
| 101 | if err != nil { |
| 102 | t.Fatal(err) |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | func TestPopFirstArg(t *testing.T) { |
| 107 | s, str, err := PopFirstArgument([]string{"a", "b", "c"}) |
nothing calls this directly
no test coverage detected
searching dependent graphs…