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

Method TestLongFields

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

Source from the content-addressed store, hash-verified

190}
191
192func (s *ControlFileSuite) TestLongFields(c *C) {
193 f, err := os.Open("long.stanza")
194 c.Assert(err, IsNil)
195 defer func() { _ = f.Close() }()
196
197 r := NewControlFileReader(f, false, false)
198 stanza, e := r.ReadStanza()
199 c.Assert(e, IsNil)
200 c.Assert(len(stanza["Provides"]), Equals, 586929)
201}
202
203func (s *ControlFileSuite) BenchmarkReadStanza(c *C) {
204 for i := 0; i < c.N; i++ {

Callers

nothing calls this directly

Calls 4

ReadStanzaMethod · 0.95
NewControlFileReaderFunction · 0.85
OpenMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected