Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(746)

Delta Between Two Patch Sets: state/api/params/params_test.go

Issue 13430044: state: added status data to status doc
Left Patch Set: Created 11 years, 7 months ago
Right Patch Set: state: added status data to status doc Created 11 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « state/api/params/params.go ('k') | state/api/uniter/unit.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 // Copyright 2013 Canonical Ltd. 1 // Copyright 2013 Canonical Ltd.
2 // Licensed under the AGPLv3, see LICENCE file for details. 2 // Licensed under the AGPLv3, see LICENCE file for details.
3 3
4 package params_test 4 package params_test
5 5
6 import ( 6 import (
7 "encoding/json" 7 "encoding/json"
8 "testing" 8 "testing"
9 9
10 gc "launchpad.net/gocheck" 10 gc "launchpad.net/gocheck"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 func (s *MarshalSuite) TestDeltaMarshalJSONUnknownOperation(c *gc.C) { 151 func (s *MarshalSuite) TestDeltaMarshalJSONUnknownOperation(c *gc.C) {
152 err := json.Unmarshal([]byte(`["relation","masticate",{}]`), new(params. Delta)) 152 err := json.Unmarshal([]byte(`["relation","masticate",{}]`), new(params. Delta))
153 c.Check(err, gc.ErrorMatches, `Unexpected operation "masticate"`) 153 c.Check(err, gc.ErrorMatches, `Unexpected operation "masticate"`)
154 } 154 }
155 155
156 func (s *MarshalSuite) TestDeltaMarshalJSONUnknownEntity(c *gc.C) { 156 func (s *MarshalSuite) TestDeltaMarshalJSONUnknownEntity(c *gc.C) {
157 err := json.Unmarshal([]byte(`["qwan","change",{}]`), new(params.Delta)) 157 err := json.Unmarshal([]byte(`["qwan","change",{}]`), new(params.Delta))
158 c.Check(err, gc.ErrorMatches, `Unexpected entity name "qwan"`) 158 c.Check(err, gc.ErrorMatches, `Unexpected entity name "qwan"`)
159 } 159 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b