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

Function TestReaderError

js/js_test.go:994–1000  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

992}
993
994func TestReaderError(t *testing.T) {
995 r := test.NewErrorReader(0)
996 w := &bytes.Buffer{}
997 m := minify.New()
998 err := Minify(m, w, r, nil)
999 test.T(t, err, test.ErrPlain)
1000}
1001
1002func TestWriterError(t *testing.T) {
1003 r := bytes.NewBufferString("a")

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…