1// Expect{{.Name}} queues an expectation that {{if .DBMethod}}DB.{{end}}{{.Name}} will be called. 2func ({{if .DBMethod}}db *DB{{else}}c *Client{{end}}) Expect{{.Name}}() *Expected{{.Name}} { 3 e := &Expected{{.Name}}{ 4{{ .SetExpectations }} 5 } 6{{- if .DBMethod }} 7 db.count++ 8{{- end }} 9 {{if .DBMethod}}db.client{{else}}c{{end}}.expected = append({{if .DBMethod}}db.client{{else}}c{{end}}.expected, e) 10 return e 11}