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

Method Read

samlsp/middleware_test.go:44–50  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

42}
43
44func (tr *testRandomReader) Read(p []byte) (n int, err error) {
45 for i := 0; i < len(p); i++ {
46 p[i] = tr.Next
47 tr.Next += 2
48 }
49 return len(p), nil
50}
51
52func NewMiddlewareTest(t *testing.T) *MiddlewareTest {
53 test := MiddlewareTest{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected