(totalBytes int64)
| 16 | } |
| 17 | |
| 18 | func NewTestDataGenerator(totalBytes int64) *TestDataGenerator { |
| 19 | return &TestDataGenerator{totalBytes: totalBytes} |
| 20 | } |
| 21 | |
| 22 | func (g *TestDataGenerator) Read(p []byte) (n int, err error) { |
| 23 | if g.generated >= g.totalBytes { |
no outgoing calls
no test coverage detected