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 serialize | 5 package serialize |
6 | 6 |
7 import ( | 7 import ( |
8 "bytes" | 8 "bytes" |
9 "fmt" | 9 "fmt" |
10 "io" | 10 "io" |
11 "testing" | 11 "testing" |
12 "time" | 12 "time" |
13 | 13 |
14 "github.com/luci/gae/service/blobstore" | 14 "github.com/luci/gae/service/blobstore" |
15 ds "github.com/luci/gae/service/datastore" | 15 ds "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/testing/assertions" | 17 . "github.com/luci/luci-go/common/testing/assertions" |
18 . "github.com/smartystreets/goconvey/convey" | 18 . "github.com/smartystreets/goconvey/convey" |
19 ) | 19 ) |
20 | 20 |
21 func init() { | 21 func init() { |
22 WritePropertyMapDeterministic = true | 22 WritePropertyMapDeterministic = true |
23 } | 23 } |
24 | 24 |
25 var ( | 25 var ( |
26 mp = ds.MkProperty | 26 mp = ds.MkProperty |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 "__ancestor__": { | 506 "__ancestor__": { |
507 ToBytes(mp(fakeKey)), | 507 ToBytes(mp(fakeKey)), |
508 ToBytes(mp(fakeKey.Paren
t())), | 508 ToBytes(mp(fakeKey.Paren
t())), |
509 }, | 509 }, |
510 }) | 510 }) |
511 }) | 511 }) |
512 }) | 512 }) |
513 }) | 513 }) |
514 }) | 514 }) |
515 } | 515 } |
OLD | NEW |