github.com/mattyw/juju@v0.0.0-20140610034352-732aecd63861/environs/configstore/mem_test.go (about) 1 // Copyright 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package configstore_test 5 6 import ( 7 gc "launchpad.net/gocheck" 8 9 "github.com/juju/juju/environs/configstore" 10 ) 11 12 var _ = gc.Suite(&memInterfaceSuite{}) 13 14 type memInterfaceSuite struct { 15 interfaceSuite 16 } 17 18 func (s *memInterfaceSuite) SetUpSuite(c *gc.C) { 19 s.NewStore = func(c *gc.C) configstore.Storage { 20 return configstore.NewMem() 21 } 22 } 23 24 func (s *memInterfaceSuite) TestMemInfoLocation(c *gc.C) { 25 memStore := configstore.NewMem() 26 memInfo, _ := memStore.CreateInfo("foo") 27 c.Assert(memInfo.Location(), gc.Equals, "memory") 28 }