MCPcopy Create free account
hub / github.com/aptly-dev/aptly / BenchmarkReadStanza

Method BenchmarkReadStanza

deb/format_test.go:203–214  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

201}
202
203func (s *ControlFileSuite) BenchmarkReadStanza(c *C) {
204 for i := 0; i < c.N; i++ {
205 reader := bytes.NewBufferString(controlFile)
206 r := NewControlFileReader(reader, false, false)
207 for {
208 s, e := r.ReadStanza()
209 if s == nil && e == nil {
210 break
211 }
212 }
213 }
214}

Callers

nothing calls this directly

Calls 2

ReadStanzaMethod · 0.95
NewControlFileReaderFunction · 0.85

Tested by

no test coverage detected