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

Side by Side Diff: state/life_test.go

Issue 6540046: mstate: rename to state.
Patch Set: mstate: rename to state. Created 12 years, 6 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:
View unified diff | Download patch
« no previous file with comments | « state/life.go ('k') | state/machine.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 package mstate_test 1 package state_test
2 2
3 import ( 3 import (
4 . "launchpad.net/gocheck" 4 . "launchpad.net/gocheck"
5 "launchpad.net/juju-core/charm" 5 "launchpad.net/juju-core/charm"
6 » state "launchpad.net/juju-core/mstate" 6 » "launchpad.net/juju-core/state"
7 ) 7 )
8 8
9 type LifeSuite struct { 9 type LifeSuite struct {
10 ConnSuite 10 ConnSuite
11 charm *state.Charm 11 charm *state.Charm
12 svc *state.Service 12 svc *state.Service
13 } 13 }
14 14
15 func (s *LifeSuite) SetUpTest(c *C) { 15 func (s *LifeSuite) SetUpTest(c *C) {
16 var err error 16 var err error
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 func testWhenDying(c *C, obj lifer, dyingErr, deadErr string, checks ...func() e rror) { 230 func testWhenDying(c *C, obj lifer, dyingErr, deadErr string, checks ...func() e rror) {
231 c.Logf("checking life of %v (%T)", obj, obj) 231 c.Logf("checking life of %v (%T)", obj, obj)
232 runLifeChecks(c, obj, noErr, checks) 232 runLifeChecks(c, obj, noErr, checks)
233 err := obj.Kill() 233 err := obj.Kill()
234 c.Assert(err, IsNil) 234 c.Assert(err, IsNil)
235 runLifeChecks(c, obj, dyingErr, checks) 235 runLifeChecks(c, obj, dyingErr, checks)
236 err = obj.Die() 236 err = obj.Die()
237 c.Assert(err, IsNil) 237 c.Assert(err, IsNil)
238 runLifeChecks(c, obj, deadErr, checks) 238 runLifeChecks(c, obj, deadErr, checks)
239 } 239 }
OLDNEW
« no previous file with comments | « state/life.go ('k') | state/machine.go » ('j') | no next file with comments »

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