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

Method Read

service_provider_test.go:54–62  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

52}
53
54func (tr *testRandomReader) Read(p []byte) (n int, err error) {
55 tr.mu.Lock()
56 defer tr.mu.Unlock()
57 for i := 0; i < len(p); i++ {
58 p[i] = tr.Next
59 tr.Next += 2
60 }
61 return len(p), nil
62}
63
64func NewServiceProviderTest(t *testing.T) *ServiceProviderTest {
65 TimeNow = func() time.Time {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected