Documentation ¶
Overview ¶
This package provides helpers for testing with resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCharmResource ¶
func NewCharmResource(c *gc.C, name, content string) charmresource.Resource
NewCharmResource produces basic resource info for the given name and content. The origin is set set to "upload".
func NewPlaceholderResource ¶
NewPlaceholderResource returns resource info for a resource that has not been uploaded or pulled from the charm store yet. The origin is set to "upload".
Types ¶
type StubUnit ¶
type StubUnit struct { *testing.Stub ReturnName string ReturnApplicationName string ReturnCharmURL *charm.URL }
StubUnit is a testing implementation of resource.Unit.
func (*StubUnit) ApplicationName ¶
ApplicationName implements resource.Unit.
Click to show internal directories.
Click to hide internal directories.