diff --git a/tui/show_file_test.go b/tui/show_file_test.go index 2958202ea..6cc87ebae 100644 --- a/tui/show_file_test.go +++ b/tui/show_file_test.go @@ -9,6 +9,12 @@ import ( "github.com/ulikunitz/xz" ) +func TestGetScannerForEmptyString(t *testing.T) { + r := bytes.NewReader([]byte{}) + _, err := getScanner(r) + assert.ErrorContains(t, err, "EOF") +} + func TestGetScannerForPlainString(t *testing.T) { r := bytes.NewReader([]byte("hello")) s, err := getScanner(r)