| 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 txnBuf | 5 package txnBuf |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "bytes" | 8 "bytes" |
| 9 "fmt" | 9 "fmt" |
| 10 "math/rand" | 10 "math/rand" |
| 11 "testing" | 11 "testing" |
| 12 | 12 |
| 13 "github.com/luci/gae/filter/count" | 13 "github.com/luci/gae/filter/count" |
| 14 "github.com/luci/gae/impl/memory" | 14 "github.com/luci/gae/impl/memory" |
| 15 "github.com/luci/gae/service/datastore" | 15 "github.com/luci/gae/service/datastore" |
| 16 » "github.com/luci/luci-go/common/cmpbin" | 16 » "github.com/luci/luci-go/common/data/cmpbin" |
| 17 "github.com/luci/luci-go/common/errors" | 17 "github.com/luci/luci-go/common/errors" |
| 18 . "github.com/luci/luci-go/common/testing/assertions" | 18 . "github.com/luci/luci-go/common/testing/assertions" |
| 19 . "github.com/smartystreets/goconvey/convey" | 19 . "github.com/smartystreets/goconvey/convey" |
| 20 "golang.org/x/net/context" | 20 "golang.org/x/net/context" |
| 21 ) | 21 ) |
| 22 | 22 |
| 23 type Foo struct { | 23 type Foo struct { |
| 24 ID int64 `gae:"$id"` | 24 ID int64 `gae:"$id"` |
| 25 Parent *datastore.Key `gae:"$parent"` | 25 Parent *datastore.Key `gae:"$parent"` |
| 26 | 26 |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 val := pm["Value"] | 902 val := pm["Value"] |
| 903 So(val[len(val)-1].Value(), ShouldResemb
le, "wat") | 903 So(val[len(val)-1].Value(), ShouldResemb
le, "wat") |
| 904 }), ShouldBeNil) | 904 }), ShouldBeNil) |
| 905 }) | 905 }) |
| 906 | 906 |
| 907 }) | 907 }) |
| 908 | 908 |
| 909 }) | 909 }) |
| 910 | 910 |
| 911 } | 911 } |
| OLD | NEW |