Documentation ¶
Overview ¶
Package templatetest provides test doubles for embedded templates.
Index ¶
- type Stub
- func (fs Stub) Parse(_ string, _ interface{}, _ ...template.ParseOption) (*template.Content, error)
- func (fs Stub) ParseBackendService(_ template.WorkloadOpts) (*template.Content, error)
- func (fs Stub) ParseEnv(_ *template.EnvOpts) (*template.Content, error)
- func (fs Stub) ParseEnvBootstrap(data *template.EnvOpts, options ...template.ParseOption) (*template.Content, error)
- func (fs Stub) ParseLoadBalancedWebService(_ template.WorkloadOpts) (*template.Content, error)
- func (fs Stub) ParseRequestDrivenWebService(_ template.WorkloadOpts) (*template.Content, error)
- func (fs Stub) ParseScheduledJob(_ template.WorkloadOpts) (*template.Content, error)
- func (fs Stub) ParseStaticSite(_ template.WorkloadOpts) (*template.Content, error)
- func (fs Stub) ParseWorkerService(_ template.WorkloadOpts) (*template.Content, error)
- func (fs Stub) Read(_ string) (*template.Content, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stub ¶
type Stub struct{}
Stub stubs template.New and simulates successful read and parse calls.
func (Stub) ParseBackendService ¶
ParseBackendService returns a dummy template.Content with "data" in it.
func (Stub) ParseEnvBootstrap ¶
func (fs Stub) ParseEnvBootstrap(data *template.EnvOpts, options ...template.ParseOption) (*template.Content, error)
ParseEnvBootstrap returns a dummy template.Content with "data" in it.
func (Stub) ParseLoadBalancedWebService ¶
ParseLoadBalancedWebService returns a dummy template.Content with "data" in it.
func (Stub) ParseRequestDrivenWebService ¶
ParseRequestDrivenWebService returns a dummy template.Content with "data" in it.
func (Stub) ParseScheduledJob ¶
ParseScheduledJob returns a dummy template.Content with "data" in it.
func (Stub) ParseStaticSite ¶ added in v1.27.0
ParseStaticSite returns a dummy template.Content with "data" in it.
func (Stub) ParseWorkerService ¶
ParseWorkerService returns a dummy template.Content with "data" in it.