Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: filter/txnBuf/txnbuf_test.go

Issue 2192003003: GAE CL for luci-go common refactor (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « filter/txnBuf/state.go ('k') | impl/memory/datastore_index_selection.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « filter/txnBuf/state.go ('k') | impl/memory/datastore_index_selection.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698