github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/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) {}