Lines Matching defs:Ctx
36 type Ctx struct { struct
37 t *testing.T
38 inst aetest.Instance
39 ctx context.Context
40 mockedTime time.Time
41 emailSink chan *aemail.Message
42 client *apiClient
43 client2 *apiClient
73 func (c *Ctx) expectOK(err error) {
79 func (c *Ctx) expectFail(msg string, err error) {
88 func (c *Ctx) expectForbidden(err error) {
98 func (c *Ctx) expectEQ(got, want interface{}) {
104 func (c *Ctx) expectTrue(v bool) {
115 func (c *Ctx) Close() {
136 func (c *Ctx) advanceTime(d time.Duration) {
141 func (c *Ctx) GET(url string) error {
147 func (c *Ctx) AuthGET(access AccessLevel, url string) ([]byte, error) {
152 func (c *Ctx) POST(url, body string) error {
157 func (c *Ctx) httpRequest(method, url, body string, access AccessLevel) ([]byte, error) {
192 func (c *Ctx) loadBug(extID string) (*Bug, *Crash, *Build) {
208 func (c *Ctx) loadJob(extID string) (*Job, *Build) {
224 func (c *Ctx) checkURLContents(url string, want []byte) {
235 *Ctx anonMember
239 func (c *Ctx) makeClient(client, key string, failOnErrors bool) *apiClient {
313 func (c *Ctx) incomingEmail(to, body string, opts ...interface{}) {
363 func registerContext(r *http.Request, c *Ctx) {
380 func unregisterContext(c *Ctx) {