templatetest

package
v1.33.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package templatetest provides test doubles for embedded templates.

Index

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) Parse

func (fs Stub) Parse(_ string, _ interface{}, _ ...template.ParseOption) (*template.Content, error)

Parse returns a dummy template.Content with "data" in it.

func (Stub) ParseBackendService

func (fs Stub) ParseBackendService(_ template.WorkloadOpts) (*template.Content, error)

ParseBackendService returns a dummy template.Content with "data" in it.

func (Stub) ParseEnv

func (fs Stub) ParseEnv(_ *template.EnvOpts) (*template.Content, error)

ParseEnv 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

func (fs Stub) ParseLoadBalancedWebService(_ template.WorkloadOpts) (*template.Content, error)

ParseLoadBalancedWebService returns a dummy template.Content with "data" in it.

func (Stub) ParseRequestDrivenWebService

func (fs Stub) ParseRequestDrivenWebService(_ template.WorkloadOpts) (*template.Content, error)

ParseRequestDrivenWebService returns a dummy template.Content with "data" in it.

func (Stub) ParseScheduledJob

func (fs Stub) ParseScheduledJob(_ template.WorkloadOpts) (*template.Content, error)

ParseScheduledJob returns a dummy template.Content with "data" in it.

func (Stub) ParseStaticSite added in v1.27.0

func (fs Stub) ParseStaticSite(_ template.WorkloadOpts) (*template.Content, error)

ParseStaticSite returns a dummy template.Content with "data" in it.

func (Stub) ParseWorkerService

func (fs Stub) ParseWorkerService(_ template.WorkloadOpts) (*template.Content, error)

ParseWorkerService returns a dummy template.Content with "data" in it.

func (Stub) Read

func (fs Stub) Read(_ string) (*template.Content, error)

Read returns a dummy template.Content with "data" in it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL