(p []byte)
| 52 | } |
| 53 | |
| 54 | func (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 | |
| 64 | func NewServiceProviderTest(t *testing.T) *ServiceProviderTest { |
| 65 | TimeNow = func() time.Time { |
nothing calls this directly
no outgoing calls
no test coverage detected