// TestInvalidReader checks that an error will be returned if the reader cannot
// be decoded to a GIF.
TestInvalidReader checks that an error will be returned if the reader cannot
be decoded to a GIF.
// TestInvalidReader checks that an error will be returned if the reader cannot // be decoded to a GIF .
func TestInvalidReader(t *testing.T) {
	_, err := HelperFromReader(alwaysErrReader{})
	if err == nil {
		t.Errorf(`err = nil`)
	}
}
func TestInvalidReader ( t * testing . T ) { _ , err := HelperFromReader ( alwaysErrReader { } ) if err == nil { t . Errorf ( `err = nil` ) } }
TestInvalidReader checks that an error will be returned if the reader cannot
be decoded to a GIF.
TestInvalidReader checks that an error will be returned if the reader cannot be decoded to a GIF .