Skip to content

Commit

Permalink
test: EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed May 31, 2024
1 parent 1c14fda commit bb1a03b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tui/show_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bb1a03b

Please sign in to comment.