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

Side by Side Diff: service/datastore/dumper/dumper_example_test.go

Issue 2342063003: Differentiate between single- and multi- props. (Closed)
Patch Set: Slice is now always a clone. This is marginally worse performance, but a much safer UI. Created 4 years, 3 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 | « service/datastore/dumper/dumper.go ('k') | service/datastore/meta/eg_test.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 2016 The LUCI Authors. All rights reserved. 1 // Copyright 2016 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 dumper 5 package dumper
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 9
10 "github.com/luci/gae/impl/memory" 10 "github.com/luci/gae/impl/memory"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 return "I AM A BANANA" 51 return "I AM A BANANA"
52 }, 52 },
53 }, 53 },
54 }.Query(c, nil) 54 }.Query(c, nil)
55 if err != nil { 55 if err != nil {
56 panic(err) 56 panic(err)
57 } 57 }
58 58
59 // Output: 59 // Output:
60 // dev~app::/Example,1: 60 // dev~app::/Example,1:
61 » // "HexNumber": [0x0014] 61 » // "HexNumber": 0x0014
62 » // "Number": [PTInt(10)] 62 » // "Number": PTInt(10)
63 // "Vals": [ 63 // "Vals": [
64 // PTString("hi"), 64 // PTString("hi"),
65 // PTString("there") 65 // PTString("there")
66 // ] 66 // ]
67 // 67 //
68 // dev~app::/Example,2: 68 // dev~app::/Example,2:
69 » // "HexNumber": [0x0015] 69 » // "HexNumber": 0x0015
70 » // "Number": [PTInt(11)] 70 » // "Number": PTInt(11)
71 // "Vals": [PTString("other")] 71 // "Vals": [PTString("other")]
72 // 72 //
73 // dev~app::/Other,1: 73 // dev~app::/Other,1:
74 // I AM A BANANA 74 // I AM A BANANA
75 // 75 //
76 // dev~app::/Parent,1/Example,1: 76 // dev~app::/Parent,1/Example,1:
77 » // "HexNumber": [0x0000] 77 » // "HexNumber": 0x0000
78 » // "Number": [PTInt(0)] 78 » // "Number": PTInt(0)
79 // "Vals": [ 79 // "Vals": [
80 // PTString("child"), 80 // PTString("child"),
81 // PTString("ent") 81 // PTString("ent")
82 // ] 82 // ]
83 } 83 }
OLDNEW
« no previous file with comments | « service/datastore/dumper/dumper.go ('k') | service/datastore/meta/eg_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698