Exemple #1
0
func (d expect) checkDirect(c *gc.C, q hook.Source) {
	if d.hook == "" {
		c.Check(q.Empty(), jc.IsTrue)
	} else {
		c.Check(q.Empty(), jc.IsFalse)
		c.Check(q.Next(), jc.DeepEquals, d.info())
		q.Pop()
	}
}
Exemple #2
0
func (d advance) checkDirect(c *gc.C, q hook.Source) {
	for i := 0; i < d.count; i++ {
		c.Assert(q.Empty(), jc.IsFalse)
		q.Pop()
	}
}