MCPcopy Create free account
hub / github.com/crewjam/saml / covDeflate

Function covDeflate

testsaml/parse_test.go:16–25  ·  view source on GitHub ↗
(t *testing.T, data string)

Source from the content-addressed store, hash-verified

14)
15
16func covDeflate(t *testing.T, data string) string {
17 t.Helper()
18 buf := &bytes.Buffer{}
19 w, err := flate.NewWriter(buf, flate.DefaultCompression)
20 assert.NilError(t, err)
21 _, err = w.Write([]byte(data))
22 assert.NilError(t, err)
23 assert.NilError(t, w.Close())
24 return base64.StdEncoding.EncodeToString(buf.Bytes())
25}
26
27func covURL(param, value string) *url.URL {
28 return &url.URL{

Callers 1

TestParseRedirectFunction · 0.85

Calls 3

BytesMethod · 0.80
WriteMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected