(t *testing.T)
| 2165 | } |
| 2166 | |
| 2167 | func TestHashSums_OutputsEmptyStringForFileThatCannotBeHashed(t *testing.T) { |
| 2168 | got, err := script.Echo("file_does_not_exist.txt").HashSums(sha256.New()).String() |
| 2169 | if err != nil { |
| 2170 | t.Fatal(err) |
| 2171 | } |
| 2172 | want := "" |
| 2173 | if got != want { |
| 2174 | t.Errorf("want %q, got %q", want, got) |
| 2175 | } |
| 2176 | } |
| 2177 | |
| 2178 | func ExampleArgs() { |
| 2179 | script.Args().Stdout() |