I find the order in which things occur here a bit strange (though go doesn't care), my impulse would be to put them at the end, but maybe this is better, I'm also unsure about putting the hooks into &clientSessionSuite{...} vs setting them in SetUpSuite
98 +type clientSessionSuite struct { essionSuite struct{ clientSessionSuite } clientSessionSu ite{}) clientSqlevelsS essionSuite{ }) uite) SetUpSuite(c *C) { NewLevelMap SessionSuite) SetUpSuite(c *C) { NewSqliteLevelM ap(":memory: ") } uite) SetUpTest(c *C) { NewTestLogger( c, "debug")
99 + log logger.Logger
100 + lvls func() (levelmap.LevelMap, error)
101 +}
102 +
103 +type clientSqlevelsS
104 +
105 +var _ = Suite(&
106 +var _ = Suite(&
107 +
108 +func (cs *clientSessionS
109 + cs.lvls = levelmap.
110 +}
111 +
112 +func (cs *clientSqlevels
113 + cs.lvls = func() (levelmap.LevelMap, error) { return levelmap.
114 +}
115 +
116 func (cs *clientSessionS
117 cs.log = helpers.
118 }
I find the order in which things occur here a bit strange (though go doesn't care), my impulse would be to put them at the end, but maybe this is better, I'm also unsure about putting the hooks into &clientSessionS uite{.. .} vs setting them in SetUpSuite