MCPcopy
hub / github.com/tdewolff/minify / TestReaderErrors

Function TestReaderErrors

html/html_test.go:449–455  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

447}
448
449func TestReaderErrors(t *testing.T) {
450 r := test.NewErrorReader(0)
451 w := &bytes.Buffer{}
452 m := minify.New()
453 err := Minify(m, w, r, nil)
454 test.T(t, err, test.ErrPlain, "return error at first read")
455}
456
457func TestWriterErrors(t *testing.T) {
458 errorTests := []struct {

Callers

nothing calls this directly

Calls 1

MinifyFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…