github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/testing/stub_pool.go (about) 1 // Copyright 2018 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package testing 5 6 // StubPoolHelper implements state.PoolHelper 7 type StubPoolHelper struct { 8 StubRelease func() bool 9 } 10 11 func (s StubPoolHelper) Release() bool { return s.StubRelease() } 12 func (s StubPoolHelper) Annotate(_ string) {}