mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-10 06:14:22 +00:00
A bit of niceness: more hints for first-time user.
This commit is contained in:
Vendored
+3
-1
@@ -112,7 +112,7 @@ func (s *SnapshotCollectionSuite) TestUpdateLoadComplete(c *C) {
|
||||
c.Assert(snapshot.NumPackages(), Equals, 3)
|
||||
}
|
||||
|
||||
func (s *SnapshotCollectionSuite) TestForEach(c *C) {
|
||||
func (s *SnapshotCollectionSuite) TestForEachAndLen(c *C) {
|
||||
s.collection.Add(s.snapshot1)
|
||||
s.collection.Add(s.snapshot2)
|
||||
|
||||
@@ -124,6 +124,8 @@ func (s *SnapshotCollectionSuite) TestForEach(c *C) {
|
||||
c.Assert(count, Equals, 2)
|
||||
c.Assert(err, IsNil)
|
||||
|
||||
c.Check(s.collection.Len(), Equals, 2)
|
||||
|
||||
e := errors.New("d")
|
||||
err = s.collection.ForEach(func(*Snapshot) error {
|
||||
return e
|
||||
|
||||
Reference in New Issue
Block a user