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

Function TestWriterError

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

Source from the content-addressed store, hash-verified

1000}
1001
1002func TestWriterError(t *testing.T) {
1003 r := bytes.NewBufferString("a")
1004 w := test.NewErrorWriter(0)
1005 m := minify.New()
1006 err := Minify(m, w, r, nil)
1007 test.T(t, err, test.ErrPlain)
1008}
1009
1010func TestRenamerIndices(t *testing.T) {
1011 renamer := newRenamer(true, true)

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…