LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package build | 5 package build |
6 | 6 |
7 // TODO(adg): test authentication | 7 // TODO(adg): test authentication |
8 | 8 |
9 import ( | 9 import ( |
10 "appengine" | 10 "appengine" |
(...skipping 18 matching lines...) Expand all Loading... |
29 "Commit", | 29 "Commit", |
30 "Result", | 30 "Result", |
31 "Log", | 31 "Log", |
32 } | 32 } |
33 | 33 |
34 const testPkg = "code.google.com/p/go.more" | 34 const testPkg = "code.google.com/p/go.more" |
35 | 35 |
36 var testPackage = &Package{Name: "Test", Path: testPkg} | 36 var testPackage = &Package{Name: "Test", Path: testPkg} |
37 | 37 |
38 var testPackages = []*Package{ | 38 var testPackages = []*Package{ |
39 » &Package{Name: "Go", Path: ""}, | 39 » {Name: "Go", Path: ""}, |
40 testPackage, | 40 testPackage, |
41 } | 41 } |
42 | 42 |
43 var testRequests = []struct { | 43 var testRequests = []struct { |
44 path string | 44 path string |
45 vals url.Values | 45 vals url.Values |
46 req interface{} | 46 req interface{} |
47 res interface{} | 47 res interface{} |
48 }{ | 48 }{ |
49 // Packages | 49 // Packages |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 break | 185 break |
186 } | 186 } |
187 if err != nil { | 187 if err != nil { |
188 return err | 188 return err |
189 } | 189 } |
190 keys = append(keys, k) | 190 keys = append(keys, k) |
191 } | 191 } |
192 } | 192 } |
193 return datastore.DeleteMulti(c, keys) | 193 return datastore.DeleteMulti(c, keys) |
194 } | 194 } |
LEFT | RIGHT |