Documentation ¶
Index ¶
- Variables
- func MediaTypeEntries() []ginkgo.TableEntry
- func NewGitHubClient() *github.Client
- type Cache
- type MockGenerator
- func (m *MockGenerator) Execute(spec *tdlv1alpha1.Spec, sink tdl.Sink) error
- func (m *MockGenerator) WithExecute(fn func(*tdlv1alpha1.Spec, tdl.Sink) error) *MockGenerator
- func (m *MockGenerator) WithName(name string) *MockGeneratorStringer
- func (m *MockGenerator) WithString(fn func() string) *MockGeneratorStringer
- type MockGeneratorStringer
- type MockPlugin
- type MockTarget
- func (m *MockTarget) Choose(available []tdl.Generator) (tdl.Generator, error)
- func (m *MockTarget) Plugins() iter.Seq[tdl.Plugin]
- func (m *MockTarget) String() string
- func (m *MockTarget) WithChoose(fn func([]tdl.Generator) (tdl.Generator, error)) *MockTarget
- func (m *MockTarget) WithPlugins(fn func() iter.Seq[tdl.Plugin]) *MockTarget
- func (m *MockTarget) WithString(fn func() string) *MockTarget
- type Test
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func MediaTypeEntries ¶
func MediaTypeEntries() []ginkgo.TableEntry
func NewGitHubClient ¶
Types ¶
type Cache ¶
func NewCacheForT ¶
type MockGenerator ¶
type MockGenerator struct {
ExecuteFunc func(*tdlv1alpha1.Spec, tdl.Sink) error
}
func NewMockGenerator ¶
func NewMockGenerator() *MockGenerator
func (*MockGenerator) Execute ¶
func (m *MockGenerator) Execute(spec *tdlv1alpha1.Spec, sink tdl.Sink) error
Execute implements tdl.Generator.
func (*MockGenerator) WithExecute ¶
func (m *MockGenerator) WithExecute( fn func(*tdlv1alpha1.Spec, tdl.Sink) error, ) *MockGenerator
func (*MockGenerator) WithName ¶
func (m *MockGenerator) WithName(name string) *MockGeneratorStringer
func (*MockGenerator) WithString ¶
func (m *MockGenerator) WithString( fn func() string, ) *MockGeneratorStringer
type MockGeneratorStringer ¶
type MockGeneratorStringer struct { *MockGenerator StringFunc func() string }
type MockPlugin ¶
type MockPlugin struct { GeneratorFunc func(tdl.Target) (tdl.Generator, error) StringFunc func() string }
func NewMockPlugin ¶
func NewMockPlugin() *MockPlugin
func (*MockPlugin) WithGenerator ¶
func (m *MockPlugin) WithGenerator( fn func(t tdl.Target) (tdl.Generator, error), ) *MockPlugin
func (*MockPlugin) WithString ¶
func (m *MockPlugin) WithString( fn func() string, ) *MockPlugin
type MockTarget ¶
type MockTarget struct { ChooseFunc func([]tdl.Generator) (tdl.Generator, error) PluginsFunc func() iter.Seq[tdl.Plugin] StringFunc func() string }
func NewMockTarget ¶
func NewMockTarget() *MockTarget
func (*MockTarget) Plugins ¶
func (m *MockTarget) Plugins() iter.Seq[tdl.Plugin]
Plugins implements tdl.Target.
func (*MockTarget) WithChoose ¶
func (m *MockTarget) WithChoose( fn func([]tdl.Generator) (tdl.Generator, error), ) *MockTarget
func (*MockTarget) WithPlugins ¶
func (m *MockTarget) WithPlugins( fn func() iter.Seq[tdl.Plugin], ) *MockTarget
func (*MockTarget) WithString ¶
func (m *MockTarget) WithString( fn func() string, ) *MockTarget
Source Files ¶
Click to show internal directories.
Click to hide internal directories.