OLD | NEW |
1 // Copyright 2015 The LUCI Authors. All rights reserved. | 1 // Copyright 2015 The LUCI Authors. All rights reserved. |
2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
4 | 4 |
5 package datastore | 5 package datastore |
6 | 6 |
7 import ( | 7 import ( |
8 "math" | 8 "math" |
9 "testing" | 9 "testing" |
10 | 10 |
11 » "github.com/luci/luci-go/common/parallel" | 11 » "github.com/luci/luci-go/common/sync/parallel" |
12 . "github.com/luci/luci-go/common/testing/assertions" | 12 . "github.com/luci/luci-go/common/testing/assertions" |
13 . "github.com/smartystreets/goconvey/convey" | 13 . "github.com/smartystreets/goconvey/convey" |
14 ) | 14 ) |
15 | 15 |
16 const ( | 16 const ( |
17 MaxUint = ^uint(0) | 17 MaxUint = ^uint(0) |
18 MaxInt = int(MaxUint >> 1) | 18 MaxInt = int(MaxUint >> 1) |
19 IntIs32Bits = int64(MaxInt) < math.MaxInt64 | 19 IntIs32Bits = int64(MaxInt) < math.MaxInt64 |
20 ) | 20 ) |
21 | 21 |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 return err | 370 return err |
371 } | 371 } |
372 } | 372 } |
373 }) | 373 }) |
374 } | 374 } |
375 } | 375 } |
376 }) | 376 }) |
377 So(err, ShouldBeNil) | 377 So(err, ShouldBeNil) |
378 }) | 378 }) |
379 } | 379 } |
OLD | NEW |