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

Method Read

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

Source from the content-addressed store, hash-verified

50}
51
52func (tr *testRandomReader) Read(p []byte) (n int, err error) {
53 for i := 0; i < len(p); i++ {
54 p[i] = tr.Next
55 tr.Next += 2
56 }
57 return len(p), nil
58}
59
60func NewMiddlewareTest(t *testing.T) *MiddlewareTest {
61 test := MiddlewareTest{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected