OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package dummy | 5 package dummy |
6 | 6 |
7 import ( | 7 import ( |
8 "fmt" | 8 "fmt" |
9 "runtime" | 9 "runtime" |
10 "strings" | 10 "strings" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 func (i) GetNamespace() string
{ return "dummy-namespace" } | 144 func (i) GetNamespace() string
{ return "dummy-namespace" } |
145 func (i) ModuleHostname(module, version, instance string) (string, error)
{ panic(ni()) } | 145 func (i) ModuleHostname(module, version, instance string) (string, error)
{ panic(ni()) } |
146 func (i) ModuleName() string
{ panic(ni()) } | 146 func (i) ModuleName() string
{ panic(ni()) } |
147 func (i) DefaultVersionHostname() string
{ panic(ni()) } | 147 func (i) DefaultVersionHostname() string
{ panic(ni()) } |
148 func (i) PublicCertificates() ([]info.Certificate, error)
{ panic(ni()) } | 148 func (i) PublicCertificates() ([]info.Certificate, error)
{ panic(ni()) } |
149 func (i) RequestID() string
{ panic(ni()) } | 149 func (i) RequestID() string
{ panic(ni()) } |
150 func (i) ServiceAccount() (string, error)
{ panic(ni()) } | 150 func (i) ServiceAccount() (string, error)
{ panic(ni()) } |
151 func (i) SignBytes(bytes []byte) (keyName string, signature []byte, err error)
{ panic(ni()) } | 151 func (i) SignBytes(bytes []byte) (keyName string, signature []byte, err error)
{ panic(ni()) } |
152 func (i) VersionID() string
{ panic(ni()) } | 152 func (i) VersionID() string
{ panic(ni()) } |
153 func (i) Namespace(namespace string) (context.Context, error)
{ panic(ni()) } | 153 func (i) Namespace(namespace string) (context.Context, error)
{ panic(ni()) } |
| 154 func (i) MustNamespace(namespace string) context.Context
{ panic(ni()) } |
154 func (i) Datacenter() string
{ panic(ni()) } | 155 func (i) Datacenter() string
{ panic(ni()) } |
155 func (i) InstanceID() string
{ panic(ni()) } | 156 func (i) InstanceID() string
{ panic(ni()) } |
156 func (i) IsDevAppServer() bool
{ panic(ni()) } | 157 func (i) IsDevAppServer() bool
{ panic(ni()) } |
157 func (i) ServerSoftware() string
{ panic(ni()) } | 158 func (i) ServerSoftware() string
{ panic(ni()) } |
158 func (i) IsCapabilityDisabled(err error) bool
{ panic(ni()) } | 159 func (i) IsCapabilityDisabled(err error) bool
{ panic(ni()) } |
159 func (i) IsOverQuota(err error) bool
{ panic(ni()) } | 160 func (i) IsOverQuota(err error) bool
{ panic(ni()) } |
160 func (i) IsTimeoutError(err error) bool
{ panic(ni()) } | 161 func (i) IsTimeoutError(err error) bool
{ panic(ni()) } |
161 | 162 |
162 var dummyInfoInst = i{} | 163 var dummyInfoInst = i{} |
163 | 164 |
(...skipping 29 matching lines...) Expand all Loading... |
193 func (m) Send(*mail.Message) error { panic(ni()) } | 194 func (m) Send(*mail.Message) error { panic(ni()) } |
194 func (m) SendToAdmins(*mail.Message) error { panic(ni()) } | 195 func (m) SendToAdmins(*mail.Message) error { panic(ni()) } |
195 func (m) Testable() mail.Testable { panic(ni()) } | 196 func (m) Testable() mail.Testable { panic(ni()) } |
196 | 197 |
197 var dummyMailInst = m{} | 198 var dummyMailInst = m{} |
198 | 199 |
199 // Mail returns a dummy mail.Interface implementation suitable for embedding. | 200 // Mail returns a dummy mail.Interface implementation suitable for embedding. |
200 // Every method panics with a message containing the name of the method which | 201 // Every method panics with a message containing the name of the method which |
201 // was unimplemented. | 202 // was unimplemented. |
202 func Mail() mail.Interface { return dummyMailInst } | 203 func Mail() mail.Interface { return dummyMailInst } |
OLD | NEW |