Documentation
¶
Index ¶
- type Cache
- type Cache_AddImage_Call
- type Cache_Expecter
- type Cache_GetImage_Call
- func (_c *Cache_GetImage_Call) Return(_a0 *entity.Image, _a1 error) *Cache_GetImage_Call
- func (_c *Cache_GetImage_Call) Run(run func(value string, _a1 extension.Type)) *Cache_GetImage_Call
- func (_c *Cache_GetImage_Call) RunAndReturn(run func(string, extension.Type) (*entity.Image, error)) *Cache_GetImage_Call
- type Cache_LoadImage_Call
- type CellWriter
- func (_m *CellWriter) Apply(width float64, height float64, config *entity.Config, prop *props.Cell)
- func (_m *CellWriter) EXPECT() *CellWriter_Expecter
- func (_m *CellWriter) GetName() string
- func (_m *CellWriter) GetNext() cellwriter.CellWriter
- func (_m *CellWriter) SetNext(next cellwriter.CellWriter)
- type CellWriter_Apply_Call
- type CellWriter_Expecter
- func (_e *CellWriter_Expecter) Apply(width interface{}, height interface{}, config interface{}, prop interface{}) *CellWriter_Apply_Call
- func (_e *CellWriter_Expecter) GetName() *CellWriter_GetName_Call
- func (_e *CellWriter_Expecter) GetNext() *CellWriter_GetNext_Call
- func (_e *CellWriter_Expecter) SetNext(next interface{}) *CellWriter_SetNext_Call
- type CellWriter_GetName_Call
- type CellWriter_GetNext_Call
- type CellWriter_SetNext_Call
- type Checkbox
- type Checkbox_Add_Call
- type Checkbox_Expecter
- type Code
- type Code_Expecter
- type Code_GenBar_Call
- func (_c *Code_GenBar_Call) Return(_a0 *entity.Image, _a1 error) *Code_GenBar_Call
- func (_c *Code_GenBar_Call) Run(run func(code string, cell *entity.Cell, prop *props.Barcode)) *Code_GenBar_Call
- func (_c *Code_GenBar_Call) RunAndReturn(run func(string, *entity.Cell, *props.Barcode) (*entity.Image, error)) *Code_GenBar_Call
- type Code_GenDataMatrix_Call
- type Code_GenQr_Call
- type Col
- func (_m *Col) Add(components ...core.Component) core.Col
- func (_m *Col) EXPECT() *Col_Expecter
- func (_m *Col) GetHeight(provider core.Provider, cell *entity.Cell) float64
- func (_m *Col) GetSize() int
- func (_m *Col) GetStructure() *node.Node[core.Structure]
- func (_m *Col) Render(provider core.Provider, cell entity.Cell, createCell bool)
- func (_m *Col) SetConfig(config *entity.Config)
- func (_m *Col) WithStyle(style *props.Cell) core.Col
- type Col_Add_Call
- type Col_Expecter
- func (_e *Col_Expecter) Add(components ...interface{}) *Col_Add_Call
- func (_e *Col_Expecter) GetHeight(provider interface{}, cell interface{}) *Col_GetHeight_Call
- func (_e *Col_Expecter) GetSize() *Col_GetSize_Call
- func (_e *Col_Expecter) GetStructure() *Col_GetStructure_Call
- func (_e *Col_Expecter) Render(provider interface{}, cell interface{}, createCell interface{}) *Col_Render_Call
- func (_e *Col_Expecter) SetConfig(config interface{}) *Col_SetConfig_Call
- func (_e *Col_Expecter) WithStyle(style interface{}) *Col_WithStyle_Call
- type Col_GetHeight_Call
- type Col_GetSize_Call
- type Col_GetStructure_Call
- type Col_Render_Call
- type Col_SetConfig_Call
- type Col_WithStyle_Call
- type Component
- func (_m *Component) EXPECT() *Component_Expecter
- func (_m *Component) GetHeight(provider core.Provider, cell *entity.Cell) float64
- func (_m *Component) GetStructure() *node.Node[core.Structure]
- func (_m *Component) Render(provider core.Provider, cell *entity.Cell)
- func (_m *Component) SetConfig(config *entity.Config)
- type Component_Expecter
- func (_e *Component_Expecter) GetHeight(provider interface{}, cell interface{}) *Component_GetHeight_Call
- func (_e *Component_Expecter) GetStructure() *Component_GetStructure_Call
- func (_e *Component_Expecter) Render(provider interface{}, cell interface{}) *Component_Render_Call
- func (_e *Component_Expecter) SetConfig(config interface{}) *Component_SetConfig_Call
- type Component_GetHeight_Call
- func (_c *Component_GetHeight_Call) Return(_a0 float64) *Component_GetHeight_Call
- func (_c *Component_GetHeight_Call) Run(run func(provider core.Provider, cell *entity.Cell)) *Component_GetHeight_Call
- func (_c *Component_GetHeight_Call) RunAndReturn(run func(core.Provider, *entity.Cell) float64) *Component_GetHeight_Call
- type Component_GetStructure_Call
- func (_c *Component_GetStructure_Call) Return(_a0 *node.Node[core.Structure]) *Component_GetStructure_Call
- func (_c *Component_GetStructure_Call) Run(run func()) *Component_GetStructure_Call
- func (_c *Component_GetStructure_Call) RunAndReturn(run func() *node.Node[core.Structure]) *Component_GetStructure_Call
- type Component_Render_Call
- type Component_SetConfig_Call
- type Document
- func (_m *Document) EXPECT() *Document_Expecter
- func (_m *Document) GetBase64() string
- func (_m *Document) GetBytes() []byte
- func (_m *Document) GetReport() *metrics.Report
- func (_m *Document) Merge(ctx context.Context, bytes []byte) error
- func (_m *Document) Save(file string) error
- func (_m *Document) Write(w io.Writer) (int64, error)
- type Document_Expecter
- func (_e *Document_Expecter) GetBase64() *Document_GetBase64_Call
- func (_e *Document_Expecter) GetBytes() *Document_GetBytes_Call
- func (_e *Document_Expecter) GetReport() *Document_GetReport_Call
- func (_e *Document_Expecter) Merge(ctx interface{}, bytes interface{}) *Document_Merge_Call
- func (_e *Document_Expecter) Save(file interface{}) *Document_Save_Call
- func (_e *Document_Expecter) Write(w interface{}) *Document_Write_Call
- type Document_GetBase64_Call
- type Document_GetBytes_Call
- type Document_GetReport_Call
- type Document_Merge_Call
- type Document_Save_Call
- type Document_Write_Call
- type Font
- func (_m *Font) EXPECT() *Font_Expecter
- func (_m *Font) GetColor() *props.Color
- func (_m *Font) GetFamily() string
- func (_m *Font) GetFont() (string, fontstyle.Type, float64)
- func (_m *Font) GetHeight(family string, style fontstyle.Type, size float64) float64
- func (_m *Font) GetSize() float64
- func (_m *Font) GetStyle() fontstyle.Type
- func (_m *Font) SetColor(color *props.Color)
- func (_m *Font) SetFamily(family string)
- func (_m *Font) SetFont(family string, style fontstyle.Type, size float64)
- func (_m *Font) SetSize(size float64)
- func (_m *Font) SetStyle(style fontstyle.Type)
- type Font_Expecter
- func (_e *Font_Expecter) GetColor() *Font_GetColor_Call
- func (_e *Font_Expecter) GetFamily() *Font_GetFamily_Call
- func (_e *Font_Expecter) GetFont() *Font_GetFont_Call
- func (_e *Font_Expecter) GetHeight(family interface{}, style interface{}, size interface{}) *Font_GetHeight_Call
- func (_e *Font_Expecter) GetSize() *Font_GetSize_Call
- func (_e *Font_Expecter) GetStyle() *Font_GetStyle_Call
- func (_e *Font_Expecter) SetColor(color interface{}) *Font_SetColor_Call
- func (_e *Font_Expecter) SetFamily(family interface{}) *Font_SetFamily_Call
- func (_e *Font_Expecter) SetFont(family interface{}, style interface{}, size interface{}) *Font_SetFont_Call
- func (_e *Font_Expecter) SetSize(size interface{}) *Font_SetSize_Call
- func (_e *Font_Expecter) SetStyle(style interface{}) *Font_SetStyle_Call
- type Font_GetColor_Call
- type Font_GetFamily_Call
- type Font_GetFont_Call
- type Font_GetHeight_Call
- func (_c *Font_GetHeight_Call) Return(_a0 float64) *Font_GetHeight_Call
- func (_c *Font_GetHeight_Call) Run(run func(family string, style fontstyle.Type, size float64)) *Font_GetHeight_Call
- func (_c *Font_GetHeight_Call) RunAndReturn(run func(string, fontstyle.Type, float64) float64) *Font_GetHeight_Call
- type Font_GetSize_Call
- type Font_GetStyle_Call
- type Font_SetColor_Call
- type Font_SetFamily_Call
- type Font_SetFont_Call
- type Font_SetSize_Call
- type Font_SetStyle_Call
- type Image
- type Image_Add_Call
- type Image_Expecter
- type Image_GetImageDimensions_Call
- func (_c *Image_GetImageDimensions_Call) Return(_a0 *entity.Dimensions) *Image_GetImageDimensions_Call
- func (_c *Image_GetImageDimensions_Call) Run(run func(img *entity.Image, _a1 extension.Type)) *Image_GetImageDimensions_Call
- func (_c *Image_GetImageDimensions_Call) RunAndReturn(run func(*entity.Image, extension.Type) *entity.Dimensions) *Image_GetImageDimensions_Call
- type Line
- type Line_Add_Call
- type Line_Expecter
- type Math
- type Math_Expecter
- type Math_GetInnerCenterCell_Call
- func (_c *Math_GetInnerCenterCell_Call) Return(_a0 *entity.Cell) *Math_GetInnerCenterCell_Call
- func (_c *Math_GetInnerCenterCell_Call) Run(run func(inner *entity.Dimensions, outer *entity.Dimensions)) *Math_GetInnerCenterCell_Call
- func (_c *Math_GetInnerCenterCell_Call) RunAndReturn(run func(*entity.Dimensions, *entity.Dimensions) *entity.Cell) *Math_GetInnerCenterCell_Call
- type Math_Resize_Call
- type Paper
- func (_m *Paper) AddAutoRow(cols ...core.Col) core.Row
- func (_m *Paper) AddHTML(ctx context.Context, htmlStr string) error
- func (_m *Paper) AddPages(pages ...core.Page)
- func (_m *Paper) AddRow(rowHeight float64, cols ...core.Col) core.Row
- func (_m *Paper) AddRows(rows ...core.Row)
- func (_m *Paper) EXPECT() *Paper_Expecter
- func (_m *Paper) FitInCurrentPage(heightNewLine float64) bool
- func (_m *Paper) Generate(ctx context.Context) (*core.Pdf, error)
- func (_m *Paper) GetCurrentConfig() *entity.Config
- func (_m *Paper) GetStructure() *node.Node[core.Structure]
- func (_m *Paper) RegisterFooter(rows ...core.Row) error
- func (_m *Paper) RegisterHeader(rows ...core.Row) error
- type Paper_AddAutoRow_Call
- type Paper_AddHTML_Call
- type Paper_AddPages_Call
- type Paper_AddRow_Call
- type Paper_AddRows_Call
- type Paper_Expecter
- func (_e *Paper_Expecter) AddAutoRow(cols ...interface{}) *Paper_AddAutoRow_Call
- func (_e *Paper_Expecter) AddHTML(ctx interface{}, htmlStr interface{}) *Paper_AddHTML_Call
- func (_e *Paper_Expecter) AddPages(pages ...interface{}) *Paper_AddPages_Call
- func (_e *Paper_Expecter) AddRow(rowHeight interface{}, cols ...interface{}) *Paper_AddRow_Call
- func (_e *Paper_Expecter) AddRows(rows ...interface{}) *Paper_AddRows_Call
- func (_e *Paper_Expecter) FitInCurrentPage(heightNewLine interface{}) *Paper_FitInCurrentPage_Call
- func (_e *Paper_Expecter) Generate(ctx interface{}) *Paper_Generate_Call
- func (_e *Paper_Expecter) GetCurrentConfig() *Paper_GetCurrentConfig_Call
- func (_e *Paper_Expecter) GetStructure() *Paper_GetStructure_Call
- func (_e *Paper_Expecter) RegisterFooter(rows ...interface{}) *Paper_RegisterFooter_Call
- func (_e *Paper_Expecter) RegisterHeader(rows ...interface{}) *Paper_RegisterHeader_Call
- type Paper_FitInCurrentPage_Call
- type Paper_Generate_Call
- type Paper_GetCurrentConfig_Call
- type Paper_GetStructure_Call
- type Paper_RegisterFooter_Call
- type Paper_RegisterHeader_Call
- type Provider
- func (_m *Provider) AddBackgroundImageFromBytes(bytes []byte, cell *entity.Cell, prop *props.Rect, _a3 extension.Type)
- func (_m *Provider) AddBarCode(code string, cell *entity.Cell, prop *props.Barcode)
- func (_m *Provider) AddCheckbox(label string, cell *entity.Cell, prop *props.Checkbox)
- func (_m *Provider) AddImageFromBytes(bytes []byte, cell *entity.Cell, prop *props.Rect, _a3 extension.Type)
- func (_m *Provider) AddImageFromFile(value string, cell *entity.Cell, prop *props.Rect)
- func (_m *Provider) AddLine(cell *entity.Cell, prop *props.Line)
- func (_m *Provider) AddMatrixCode(code string, cell *entity.Cell, prop *props.Rect)
- func (_m *Provider) AddQrCode(code string, cell *entity.Cell, rect *props.Rect)
- func (_m *Provider) AddText(text string, cell *entity.Cell, prop *props.Text)
- func (_m *Provider) CreateCol(width float64, height float64, config *entity.Config, prop *props.Cell)
- func (_m *Provider) CreateRow(height float64)
- func (_m *Provider) EXPECT() *Provider_Expecter
- func (_m *Provider) GenerateBytes() ([]byte, error)
- func (_m *Provider) GetDimensionsByImage(file string) (*entity.Dimensions, error)
- func (_m *Provider) GetDimensionsByImageByte(bytes []byte, _a1 extension.Type) (*entity.Dimensions, error)
- func (_m *Provider) GetDimensionsByMatrixCode(code string) (*entity.Dimensions, error)
- func (_m *Provider) GetDimensionsByQrCode(code string) (*entity.Dimensions, error)
- func (_m *Provider) GetFontHeight(prop *props.Font) float64
- func (_m *Provider) GetLinesQuantity(text string, textProp *props.Text, colWidth float64) int
- func (_m *Provider) SetCompression(compression bool)
- func (_m *Provider) SetMetadata(metadata *entity.Metadata)
- func (_m *Provider) SetProtection(protection *entity.Protection)
- type Provider_AddBackgroundImageFromBytes_Call
- func (_c *Provider_AddBackgroundImageFromBytes_Call) Return() *Provider_AddBackgroundImageFromBytes_Call
- func (_c *Provider_AddBackgroundImageFromBytes_Call) Run(...) *Provider_AddBackgroundImageFromBytes_Call
- func (_c *Provider_AddBackgroundImageFromBytes_Call) RunAndReturn(run func([]byte, *entity.Cell, *props.Rect, extension.Type)) *Provider_AddBackgroundImageFromBytes_Call
- type Provider_AddBarCode_Call
- func (_c *Provider_AddBarCode_Call) Return() *Provider_AddBarCode_Call
- func (_c *Provider_AddBarCode_Call) Run(run func(code string, cell *entity.Cell, prop *props.Barcode)) *Provider_AddBarCode_Call
- func (_c *Provider_AddBarCode_Call) RunAndReturn(run func(string, *entity.Cell, *props.Barcode)) *Provider_AddBarCode_Call
- type Provider_AddCheckbox_Call
- func (_c *Provider_AddCheckbox_Call) Return() *Provider_AddCheckbox_Call
- func (_c *Provider_AddCheckbox_Call) Run(run func(label string, cell *entity.Cell, prop *props.Checkbox)) *Provider_AddCheckbox_Call
- func (_c *Provider_AddCheckbox_Call) RunAndReturn(run func(string, *entity.Cell, *props.Checkbox)) *Provider_AddCheckbox_Call
- type Provider_AddImageFromBytes_Call
- func (_c *Provider_AddImageFromBytes_Call) Return() *Provider_AddImageFromBytes_Call
- func (_c *Provider_AddImageFromBytes_Call) Run(...) *Provider_AddImageFromBytes_Call
- func (_c *Provider_AddImageFromBytes_Call) RunAndReturn(run func([]byte, *entity.Cell, *props.Rect, extension.Type)) *Provider_AddImageFromBytes_Call
- type Provider_AddImageFromFile_Call
- func (_c *Provider_AddImageFromFile_Call) Return() *Provider_AddImageFromFile_Call
- func (_c *Provider_AddImageFromFile_Call) Run(run func(value string, cell *entity.Cell, prop *props.Rect)) *Provider_AddImageFromFile_Call
- func (_c *Provider_AddImageFromFile_Call) RunAndReturn(run func(string, *entity.Cell, *props.Rect)) *Provider_AddImageFromFile_Call
- type Provider_AddLine_Call
- type Provider_AddMatrixCode_Call
- func (_c *Provider_AddMatrixCode_Call) Return() *Provider_AddMatrixCode_Call
- func (_c *Provider_AddMatrixCode_Call) Run(run func(code string, cell *entity.Cell, prop *props.Rect)) *Provider_AddMatrixCode_Call
- func (_c *Provider_AddMatrixCode_Call) RunAndReturn(run func(string, *entity.Cell, *props.Rect)) *Provider_AddMatrixCode_Call
- type Provider_AddQrCode_Call
- func (_c *Provider_AddQrCode_Call) Return() *Provider_AddQrCode_Call
- func (_c *Provider_AddQrCode_Call) Run(run func(code string, cell *entity.Cell, rect *props.Rect)) *Provider_AddQrCode_Call
- func (_c *Provider_AddQrCode_Call) RunAndReturn(run func(string, *entity.Cell, *props.Rect)) *Provider_AddQrCode_Call
- type Provider_AddText_Call
- type Provider_CreateCol_Call
- type Provider_CreateRow_Call
- type Provider_Expecter
- func (_e *Provider_Expecter) AddBackgroundImageFromBytes(bytes interface{}, cell interface{}, prop interface{}, _a3 interface{}) *Provider_AddBackgroundImageFromBytes_Call
- func (_e *Provider_Expecter) AddBarCode(code interface{}, cell interface{}, prop interface{}) *Provider_AddBarCode_Call
- func (_e *Provider_Expecter) AddCheckbox(label interface{}, cell interface{}, prop interface{}) *Provider_AddCheckbox_Call
- func (_e *Provider_Expecter) AddImageFromBytes(bytes interface{}, cell interface{}, prop interface{}, _a3 interface{}) *Provider_AddImageFromBytes_Call
- func (_e *Provider_Expecter) AddImageFromFile(value interface{}, cell interface{}, prop interface{}) *Provider_AddImageFromFile_Call
- func (_e *Provider_Expecter) AddLine(cell interface{}, prop interface{}) *Provider_AddLine_Call
- func (_e *Provider_Expecter) AddMatrixCode(code interface{}, cell interface{}, prop interface{}) *Provider_AddMatrixCode_Call
- func (_e *Provider_Expecter) AddQrCode(code interface{}, cell interface{}, rect interface{}) *Provider_AddQrCode_Call
- func (_e *Provider_Expecter) AddText(text interface{}, cell interface{}, prop interface{}) *Provider_AddText_Call
- func (_e *Provider_Expecter) CreateCol(width interface{}, height interface{}, config interface{}, prop interface{}) *Provider_CreateCol_Call
- func (_e *Provider_Expecter) CreateRow(height interface{}) *Provider_CreateRow_Call
- func (_e *Provider_Expecter) GenerateBytes() *Provider_GenerateBytes_Call
- func (_e *Provider_Expecter) GetDimensionsByImage(file interface{}) *Provider_GetDimensionsByImage_Call
- func (_e *Provider_Expecter) GetDimensionsByImageByte(bytes interface{}, _a1 interface{}) *Provider_GetDimensionsByImageByte_Call
- func (_e *Provider_Expecter) GetDimensionsByMatrixCode(code interface{}) *Provider_GetDimensionsByMatrixCode_Call
- func (_e *Provider_Expecter) GetDimensionsByQrCode(code interface{}) *Provider_GetDimensionsByQrCode_Call
- func (_e *Provider_Expecter) GetFontHeight(prop interface{}) *Provider_GetFontHeight_Call
- func (_e *Provider_Expecter) GetLinesQuantity(text interface{}, textProp interface{}, colWidth interface{}) *Provider_GetLinesQuantity_Call
- func (_e *Provider_Expecter) SetCompression(compression interface{}) *Provider_SetCompression_Call
- func (_e *Provider_Expecter) SetMetadata(metadata interface{}) *Provider_SetMetadata_Call
- func (_e *Provider_Expecter) SetProtection(protection interface{}) *Provider_SetProtection_Call
- type Provider_GenerateBytes_Call
- type Provider_GetDimensionsByImageByte_Call
- func (_c *Provider_GetDimensionsByImageByte_Call) Return(_a0 *entity.Dimensions, _a1 error) *Provider_GetDimensionsByImageByte_Call
- func (_c *Provider_GetDimensionsByImageByte_Call) Run(run func(bytes []byte, _a1 extension.Type)) *Provider_GetDimensionsByImageByte_Call
- func (_c *Provider_GetDimensionsByImageByte_Call) RunAndReturn(run func([]byte, extension.Type) (*entity.Dimensions, error)) *Provider_GetDimensionsByImageByte_Call
- type Provider_GetDimensionsByImage_Call
- func (_c *Provider_GetDimensionsByImage_Call) Return(_a0 *entity.Dimensions, _a1 error) *Provider_GetDimensionsByImage_Call
- func (_c *Provider_GetDimensionsByImage_Call) Run(run func(file string)) *Provider_GetDimensionsByImage_Call
- func (_c *Provider_GetDimensionsByImage_Call) RunAndReturn(run func(string) (*entity.Dimensions, error)) *Provider_GetDimensionsByImage_Call
- type Provider_GetDimensionsByMatrixCode_Call
- func (_c *Provider_GetDimensionsByMatrixCode_Call) Return(_a0 *entity.Dimensions, _a1 error) *Provider_GetDimensionsByMatrixCode_Call
- func (_c *Provider_GetDimensionsByMatrixCode_Call) Run(run func(code string)) *Provider_GetDimensionsByMatrixCode_Call
- func (_c *Provider_GetDimensionsByMatrixCode_Call) RunAndReturn(run func(string) (*entity.Dimensions, error)) *Provider_GetDimensionsByMatrixCode_Call
- type Provider_GetDimensionsByQrCode_Call
- func (_c *Provider_GetDimensionsByQrCode_Call) Return(_a0 *entity.Dimensions, _a1 error) *Provider_GetDimensionsByQrCode_Call
- func (_c *Provider_GetDimensionsByQrCode_Call) Run(run func(code string)) *Provider_GetDimensionsByQrCode_Call
- func (_c *Provider_GetDimensionsByQrCode_Call) RunAndReturn(run func(string) (*entity.Dimensions, error)) *Provider_GetDimensionsByQrCode_Call
- type Provider_GetFontHeight_Call
- type Provider_GetLinesQuantity_Call
- func (_c *Provider_GetLinesQuantity_Call) Return(_a0 int) *Provider_GetLinesQuantity_Call
- func (_c *Provider_GetLinesQuantity_Call) Run(run func(text string, textProp *props.Text, colWidth float64)) *Provider_GetLinesQuantity_Call
- func (_c *Provider_GetLinesQuantity_Call) RunAndReturn(run func(string, *props.Text, float64) int) *Provider_GetLinesQuantity_Call
- type Provider_SetCompression_Call
- type Provider_SetMetadata_Call
- type Provider_SetProtection_Call
- func (_c *Provider_SetProtection_Call) Return() *Provider_SetProtection_Call
- func (_c *Provider_SetProtection_Call) Run(run func(protection *entity.Protection)) *Provider_SetProtection_Call
- func (_c *Provider_SetProtection_Call) RunAndReturn(run func(*entity.Protection)) *Provider_SetProtection_Call
- type RichTextProvider
- func (_m *RichTextProvider) AddRichText(runs []props.RichRun, cell *entity.Cell, prop *props.RichText)
- func (_m *RichTextProvider) AddTextAt(x float64, y float64, text string, prop *props.Text)
- func (_m *RichTextProvider) EXPECT() *RichTextProvider_Expecter
- func (_m *RichTextProvider) MeasureString(text string, prop *props.Text) float64
- type RichTextProvider_AddRichText_Call
- func (_c *RichTextProvider_AddRichText_Call) Return() *RichTextProvider_AddRichText_Call
- func (_c *RichTextProvider_AddRichText_Call) Run(run func(runs []props.RichRun, cell *entity.Cell, prop *props.RichText)) *RichTextProvider_AddRichText_Call
- func (_c *RichTextProvider_AddRichText_Call) RunAndReturn(run func([]props.RichRun, *entity.Cell, *props.RichText)) *RichTextProvider_AddRichText_Call
- type RichTextProvider_AddTextAt_Call
- func (_c *RichTextProvider_AddTextAt_Call) Return() *RichTextProvider_AddTextAt_Call
- func (_c *RichTextProvider_AddTextAt_Call) Run(run func(x float64, y float64, text string, prop *props.Text)) *RichTextProvider_AddTextAt_Call
- func (_c *RichTextProvider_AddTextAt_Call) RunAndReturn(run func(float64, float64, string, *props.Text)) *RichTextProvider_AddTextAt_Call
- type RichTextProvider_Expecter
- func (_e *RichTextProvider_Expecter) AddRichText(runs interface{}, cell interface{}, prop interface{}) *RichTextProvider_AddRichText_Call
- func (_e *RichTextProvider_Expecter) AddTextAt(x interface{}, y interface{}, text interface{}, prop interface{}) *RichTextProvider_AddTextAt_Call
- func (_e *RichTextProvider_Expecter) MeasureString(text interface{}, prop interface{}) *RichTextProvider_MeasureString_Call
- type RichTextProvider_MeasureString_Call
- func (_c *RichTextProvider_MeasureString_Call) Return(_a0 float64) *RichTextProvider_MeasureString_Call
- func (_c *RichTextProvider_MeasureString_Call) Run(run func(text string, prop *props.Text)) *RichTextProvider_MeasureString_Call
- func (_c *RichTextProvider_MeasureString_Call) RunAndReturn(run func(string, *props.Text) float64) *RichTextProvider_MeasureString_Call
- type Row
- func (_m *Row) Add(cols ...core.Col) core.Row
- func (_m *Row) EXPECT() *Row_Expecter
- func (_m *Row) GetColumns() []core.Col
- func (_m *Row) GetHeight(provider core.Provider, cell *entity.Cell) float64
- func (_m *Row) GetStructure() *node.Node[core.Structure]
- func (_m *Row) Render(provider core.Provider, cell entity.Cell)
- func (_m *Row) SetConfig(config *entity.Config)
- func (_m *Row) WithStyle(style *props.Cell) core.Row
- type Row_Add_Call
- type Row_Expecter
- func (_e *Row_Expecter) Add(cols ...interface{}) *Row_Add_Call
- func (_e *Row_Expecter) GetColumns() *Row_GetColumns_Call
- func (_e *Row_Expecter) GetHeight(provider interface{}, cell interface{}) *Row_GetHeight_Call
- func (_e *Row_Expecter) GetStructure() *Row_GetStructure_Call
- func (_e *Row_Expecter) Render(provider interface{}, cell interface{}) *Row_Render_Call
- func (_e *Row_Expecter) SetConfig(config interface{}) *Row_SetConfig_Call
- func (_e *Row_Expecter) WithStyle(style interface{}) *Row_WithStyle_Call
- type Row_GetColumns_Call
- type Row_GetHeight_Call
- type Row_GetStructure_Call
- type Row_Render_Call
- type Row_SetConfig_Call
- type Row_WithStyle_Call
- type Text
- type Text_Add_Call
- type Text_Expecter
- type Text_GetLinesQuantity_Call
- func (_c *Text_GetLinesQuantity_Call) Return(_a0 int) *Text_GetLinesQuantity_Call
- func (_c *Text_GetLinesQuantity_Call) Run(run func(text string, textProp *props.Text, colWidth float64)) *Text_GetLinesQuantity_Call
- func (_c *Text_GetLinesQuantity_Call) RunAndReturn(run func(string, *props.Text, float64) int) *Text_GetLinesQuantity_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache is an autogenerated mock type for the Cache type
func NewCache ¶
NewCache creates a new instance of Cache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Cache) EXPECT ¶
func (_m *Cache) EXPECT() *Cache_Expecter
type Cache_AddImage_Call ¶
Cache_AddImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddImage'
func (*Cache_AddImage_Call) Return ¶
func (_c *Cache_AddImage_Call) Return() *Cache_AddImage_Call
func (*Cache_AddImage_Call) Run ¶
func (_c *Cache_AddImage_Call) Run(run func(value string, image *entity.Image)) *Cache_AddImage_Call
func (*Cache_AddImage_Call) RunAndReturn ¶
func (_c *Cache_AddImage_Call) RunAndReturn(run func(string, *entity.Image)) *Cache_AddImage_Call
type Cache_Expecter ¶
type Cache_Expecter struct {
// contains filtered or unexported fields
}
func (*Cache_Expecter) AddImage ¶
func (_e *Cache_Expecter) AddImage(value interface{}, image interface{}) *Cache_AddImage_Call
AddImage is a helper method to define mock.On call
- value string
- image *entity.Image
func (*Cache_Expecter) GetImage ¶
func (_e *Cache_Expecter) GetImage(value interface{}, _a1 interface{}) *Cache_GetImage_Call
GetImage is a helper method to define mock.On call
- value string
- _a1 extension.Type
func (*Cache_Expecter) LoadImage ¶
func (_e *Cache_Expecter) LoadImage(value interface{}, _a1 interface{}) *Cache_LoadImage_Call
LoadImage is a helper method to define mock.On call
- value string
- _a1 extension.Type
type Cache_GetImage_Call ¶
Cache_GetImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetImage'
func (*Cache_GetImage_Call) Return ¶
func (_c *Cache_GetImage_Call) Return(_a0 *entity.Image, _a1 error) *Cache_GetImage_Call
func (*Cache_GetImage_Call) Run ¶
func (_c *Cache_GetImage_Call) Run(run func(value string, _a1 extension.Type)) *Cache_GetImage_Call
func (*Cache_GetImage_Call) RunAndReturn ¶
func (_c *Cache_GetImage_Call) RunAndReturn(run func(string, extension.Type) (*entity.Image, error)) *Cache_GetImage_Call
type Cache_LoadImage_Call ¶
Cache_LoadImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadImage'
func (*Cache_LoadImage_Call) Return ¶
func (_c *Cache_LoadImage_Call) Return(_a0 error) *Cache_LoadImage_Call
func (*Cache_LoadImage_Call) Run ¶
func (_c *Cache_LoadImage_Call) Run(run func(value string, _a1 extension.Type)) *Cache_LoadImage_Call
func (*Cache_LoadImage_Call) RunAndReturn ¶
func (_c *Cache_LoadImage_Call) RunAndReturn(run func(string, extension.Type) error) *Cache_LoadImage_Call
type CellWriter ¶
CellWriter is an autogenerated mock type for the CellWriter type
func NewCellWriter ¶
func NewCellWriter(t interface {
mock.TestingT
Cleanup(func())
},
) *CellWriter
NewCellWriter creates a new instance of CellWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CellWriter) Apply ¶
Apply provides a mock function with given fields: width, height, config, prop
func (*CellWriter) EXPECT ¶
func (_m *CellWriter) EXPECT() *CellWriter_Expecter
func (*CellWriter) GetName ¶
func (_m *CellWriter) GetName() string
GetName provides a mock function with no fields
func (*CellWriter) GetNext ¶
func (_m *CellWriter) GetNext() cellwriter.CellWriter
GetNext provides a mock function with no fields
func (*CellWriter) SetNext ¶
func (_m *CellWriter) SetNext(next cellwriter.CellWriter)
SetNext provides a mock function with given fields: next
type CellWriter_Apply_Call ¶
CellWriter_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*CellWriter_Apply_Call) Return ¶
func (_c *CellWriter_Apply_Call) Return() *CellWriter_Apply_Call
func (*CellWriter_Apply_Call) Run ¶
func (_c *CellWriter_Apply_Call) Run(run func(width float64, height float64, config *entity.Config, prop *props.Cell)) *CellWriter_Apply_Call
func (*CellWriter_Apply_Call) RunAndReturn ¶
func (_c *CellWriter_Apply_Call) RunAndReturn(run func(float64, float64, *entity.Config, *props.Cell)) *CellWriter_Apply_Call
type CellWriter_Expecter ¶
type CellWriter_Expecter struct {
// contains filtered or unexported fields
}
func (*CellWriter_Expecter) Apply ¶
func (_e *CellWriter_Expecter) Apply(width interface{}, height interface{}, config interface{}, prop interface{}) *CellWriter_Apply_Call
Apply is a helper method to define mock.On call
- width float64
- height float64
- config *entity.Config
- prop *props.Cell
func (*CellWriter_Expecter) GetName ¶
func (_e *CellWriter_Expecter) GetName() *CellWriter_GetName_Call
GetName is a helper method to define mock.On call
func (*CellWriter_Expecter) GetNext ¶
func (_e *CellWriter_Expecter) GetNext() *CellWriter_GetNext_Call
GetNext is a helper method to define mock.On call
func (*CellWriter_Expecter) SetNext ¶
func (_e *CellWriter_Expecter) SetNext(next interface{}) *CellWriter_SetNext_Call
SetNext is a helper method to define mock.On call
- next cellwriter.CellWriter
type CellWriter_GetName_Call ¶
CellWriter_GetName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetName'
func (*CellWriter_GetName_Call) Return ¶
func (_c *CellWriter_GetName_Call) Return(_a0 string) *CellWriter_GetName_Call
func (*CellWriter_GetName_Call) Run ¶
func (_c *CellWriter_GetName_Call) Run(run func()) *CellWriter_GetName_Call
func (*CellWriter_GetName_Call) RunAndReturn ¶
func (_c *CellWriter_GetName_Call) RunAndReturn(run func() string) *CellWriter_GetName_Call
type CellWriter_GetNext_Call ¶
CellWriter_GetNext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNext'
func (*CellWriter_GetNext_Call) Return ¶
func (_c *CellWriter_GetNext_Call) Return(_a0 cellwriter.CellWriter) *CellWriter_GetNext_Call
func (*CellWriter_GetNext_Call) Run ¶
func (_c *CellWriter_GetNext_Call) Run(run func()) *CellWriter_GetNext_Call
func (*CellWriter_GetNext_Call) RunAndReturn ¶
func (_c *CellWriter_GetNext_Call) RunAndReturn(run func() cellwriter.CellWriter) *CellWriter_GetNext_Call
type CellWriter_SetNext_Call ¶
CellWriter_SetNext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetNext'
func (*CellWriter_SetNext_Call) Return ¶
func (_c *CellWriter_SetNext_Call) Return() *CellWriter_SetNext_Call
func (*CellWriter_SetNext_Call) Run ¶
func (_c *CellWriter_SetNext_Call) Run(run func(next cellwriter.CellWriter)) *CellWriter_SetNext_Call
func (*CellWriter_SetNext_Call) RunAndReturn ¶
func (_c *CellWriter_SetNext_Call) RunAndReturn(run func(cellwriter.CellWriter)) *CellWriter_SetNext_Call
type Checkbox ¶
Checkbox is an autogenerated mock type for the Checkbox type
func NewCheckbox ¶
NewCheckbox creates a new instance of Checkbox. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Checkbox) EXPECT ¶
func (_m *Checkbox) EXPECT() *Checkbox_Expecter
type Checkbox_Add_Call ¶
Checkbox_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*Checkbox_Add_Call) Return ¶
func (_c *Checkbox_Add_Call) Return() *Checkbox_Add_Call
func (*Checkbox_Add_Call) Run ¶
func (_c *Checkbox_Add_Call) Run(run func(label string, cell *entity.Cell, prop *props.Checkbox)) *Checkbox_Add_Call
func (*Checkbox_Add_Call) RunAndReturn ¶
func (_c *Checkbox_Add_Call) RunAndReturn(run func(string, *entity.Cell, *props.Checkbox)) *Checkbox_Add_Call
type Checkbox_Expecter ¶
type Checkbox_Expecter struct {
// contains filtered or unexported fields
}
func (*Checkbox_Expecter) Add ¶
func (_e *Checkbox_Expecter) Add(label interface{}, cell interface{}, prop interface{}) *Checkbox_Add_Call
Add is a helper method to define mock.On call
- label string
- cell *entity.Cell
- prop *props.Checkbox
type Code ¶
Code is an autogenerated mock type for the Code type
func NewCode ¶
NewCode creates a new instance of Code. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Code) EXPECT ¶
func (_m *Code) EXPECT() *Code_Expecter
func (*Code) GenDataMatrix ¶
GenDataMatrix provides a mock function with given fields: code
type Code_Expecter ¶
type Code_Expecter struct {
// contains filtered or unexported fields
}
func (*Code_Expecter) GenBar ¶
func (_e *Code_Expecter) GenBar(code interface{}, cell interface{}, prop interface{}) *Code_GenBar_Call
GenBar is a helper method to define mock.On call
- code string
- cell *entity.Cell
- prop *props.Barcode
func (*Code_Expecter) GenDataMatrix ¶
func (_e *Code_Expecter) GenDataMatrix(code interface{}) *Code_GenDataMatrix_Call
GenDataMatrix is a helper method to define mock.On call
- code string
func (*Code_Expecter) GenQr ¶
func (_e *Code_Expecter) GenQr(code interface{}) *Code_GenQr_Call
GenQr is a helper method to define mock.On call
- code string
type Code_GenBar_Call ¶
Code_GenBar_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenBar'
func (*Code_GenBar_Call) Return ¶
func (_c *Code_GenBar_Call) Return(_a0 *entity.Image, _a1 error) *Code_GenBar_Call
func (*Code_GenBar_Call) Run ¶
func (_c *Code_GenBar_Call) Run(run func(code string, cell *entity.Cell, prop *props.Barcode)) *Code_GenBar_Call
func (*Code_GenBar_Call) RunAndReturn ¶
func (_c *Code_GenBar_Call) RunAndReturn(run func(string, *entity.Cell, *props.Barcode) (*entity.Image, error)) *Code_GenBar_Call
type Code_GenDataMatrix_Call ¶
Code_GenDataMatrix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenDataMatrix'
func (*Code_GenDataMatrix_Call) Return ¶
func (_c *Code_GenDataMatrix_Call) Return(_a0 *entity.Image, _a1 error) *Code_GenDataMatrix_Call
func (*Code_GenDataMatrix_Call) Run ¶
func (_c *Code_GenDataMatrix_Call) Run(run func(code string)) *Code_GenDataMatrix_Call
func (*Code_GenDataMatrix_Call) RunAndReturn ¶
func (_c *Code_GenDataMatrix_Call) RunAndReturn(run func(string) (*entity.Image, error)) *Code_GenDataMatrix_Call
type Code_GenQr_Call ¶
Code_GenQr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenQr'
func (*Code_GenQr_Call) Return ¶
func (_c *Code_GenQr_Call) Return(_a0 *entity.Image, _a1 error) *Code_GenQr_Call
func (*Code_GenQr_Call) Run ¶
func (_c *Code_GenQr_Call) Run(run func(code string)) *Code_GenQr_Call
func (*Code_GenQr_Call) RunAndReturn ¶
func (_c *Code_GenQr_Call) RunAndReturn(run func(string) (*entity.Image, error)) *Code_GenQr_Call
type Col ¶
Col is an autogenerated mock type for the Col type
func NewCol ¶
NewCol creates a new instance of Col. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Col) EXPECT ¶
func (_m *Col) EXPECT() *Col_Expecter
func (*Col) GetStructure ¶
GetStructure provides a mock function with no fields
type Col_Add_Call ¶
Col_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*Col_Add_Call) Return ¶
func (_c *Col_Add_Call) Return(_a0 core.Col) *Col_Add_Call
func (*Col_Add_Call) Run ¶
func (_c *Col_Add_Call) Run(run func(components ...core.Component)) *Col_Add_Call
func (*Col_Add_Call) RunAndReturn ¶
func (_c *Col_Add_Call) RunAndReturn(run func(...core.Component) core.Col) *Col_Add_Call
type Col_Expecter ¶
type Col_Expecter struct {
// contains filtered or unexported fields
}
func (*Col_Expecter) Add ¶
func (_e *Col_Expecter) Add(components ...interface{}) *Col_Add_Call
Add is a helper method to define mock.On call
- components ...core.Component
func (*Col_Expecter) GetHeight ¶
func (_e *Col_Expecter) GetHeight(provider interface{}, cell interface{}) *Col_GetHeight_Call
GetHeight is a helper method to define mock.On call
- provider core.Provider
- cell *entity.Cell
func (*Col_Expecter) GetSize ¶
func (_e *Col_Expecter) GetSize() *Col_GetSize_Call
GetSize is a helper method to define mock.On call
func (*Col_Expecter) GetStructure ¶
func (_e *Col_Expecter) GetStructure() *Col_GetStructure_Call
GetStructure is a helper method to define mock.On call
func (*Col_Expecter) Render ¶
func (_e *Col_Expecter) Render(provider interface{}, cell interface{}, createCell interface{}) *Col_Render_Call
Render is a helper method to define mock.On call
- provider core.Provider
- cell entity.Cell
- createCell bool
func (*Col_Expecter) SetConfig ¶
func (_e *Col_Expecter) SetConfig(config interface{}) *Col_SetConfig_Call
SetConfig is a helper method to define mock.On call
- config *entity.Config
func (*Col_Expecter) WithStyle ¶
func (_e *Col_Expecter) WithStyle(style interface{}) *Col_WithStyle_Call
WithStyle is a helper method to define mock.On call
- style *props.Cell
type Col_GetHeight_Call ¶
Col_GetHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHeight'
func (*Col_GetHeight_Call) Return ¶
func (_c *Col_GetHeight_Call) Return(_a0 float64) *Col_GetHeight_Call
func (*Col_GetHeight_Call) Run ¶
func (_c *Col_GetHeight_Call) Run(run func(provider core.Provider, cell *entity.Cell)) *Col_GetHeight_Call
func (*Col_GetHeight_Call) RunAndReturn ¶
func (_c *Col_GetHeight_Call) RunAndReturn(run func(core.Provider, *entity.Cell) float64) *Col_GetHeight_Call
type Col_GetSize_Call ¶
Col_GetSize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSize'
func (*Col_GetSize_Call) Return ¶
func (_c *Col_GetSize_Call) Return(_a0 int) *Col_GetSize_Call
func (*Col_GetSize_Call) Run ¶
func (_c *Col_GetSize_Call) Run(run func()) *Col_GetSize_Call
func (*Col_GetSize_Call) RunAndReturn ¶
func (_c *Col_GetSize_Call) RunAndReturn(run func() int) *Col_GetSize_Call
type Col_GetStructure_Call ¶
Col_GetStructure_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStructure'
func (*Col_GetStructure_Call) Return ¶
func (_c *Col_GetStructure_Call) Return(_a0 *node.Node[core.Structure]) *Col_GetStructure_Call
func (*Col_GetStructure_Call) Run ¶
func (_c *Col_GetStructure_Call) Run(run func()) *Col_GetStructure_Call
func (*Col_GetStructure_Call) RunAndReturn ¶
func (_c *Col_GetStructure_Call) RunAndReturn(run func() *node.Node[core.Structure]) *Col_GetStructure_Call
type Col_Render_Call ¶
Col_Render_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Render'
func (*Col_Render_Call) Return ¶
func (_c *Col_Render_Call) Return() *Col_Render_Call
func (*Col_Render_Call) Run ¶
func (_c *Col_Render_Call) Run(run func(provider core.Provider, cell entity.Cell, createCell bool)) *Col_Render_Call
func (*Col_Render_Call) RunAndReturn ¶
func (_c *Col_Render_Call) RunAndReturn(run func(core.Provider, entity.Cell, bool)) *Col_Render_Call
type Col_SetConfig_Call ¶
Col_SetConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetConfig'
func (*Col_SetConfig_Call) Return ¶
func (_c *Col_SetConfig_Call) Return() *Col_SetConfig_Call
func (*Col_SetConfig_Call) Run ¶
func (_c *Col_SetConfig_Call) Run(run func(config *entity.Config)) *Col_SetConfig_Call
func (*Col_SetConfig_Call) RunAndReturn ¶
func (_c *Col_SetConfig_Call) RunAndReturn(run func(*entity.Config)) *Col_SetConfig_Call
type Col_WithStyle_Call ¶
Col_WithStyle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithStyle'
func (*Col_WithStyle_Call) Return ¶
func (_c *Col_WithStyle_Call) Return(_a0 core.Col) *Col_WithStyle_Call
func (*Col_WithStyle_Call) Run ¶
func (_c *Col_WithStyle_Call) Run(run func(style *props.Cell)) *Col_WithStyle_Call
func (*Col_WithStyle_Call) RunAndReturn ¶
func (_c *Col_WithStyle_Call) RunAndReturn(run func(*props.Cell) core.Col) *Col_WithStyle_Call
type Component ¶
Component is an autogenerated mock type for the Component type
func NewComponent ¶
NewComponent creates a new instance of Component. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Component) EXPECT ¶
func (_m *Component) EXPECT() *Component_Expecter
func (*Component) GetStructure ¶
GetStructure provides a mock function with no fields
type Component_Expecter ¶
type Component_Expecter struct {
// contains filtered or unexported fields
}
func (*Component_Expecter) GetHeight ¶
func (_e *Component_Expecter) GetHeight(provider interface{}, cell interface{}) *Component_GetHeight_Call
GetHeight is a helper method to define mock.On call
- provider core.Provider
- cell *entity.Cell
func (*Component_Expecter) GetStructure ¶
func (_e *Component_Expecter) GetStructure() *Component_GetStructure_Call
GetStructure is a helper method to define mock.On call
func (*Component_Expecter) Render ¶
func (_e *Component_Expecter) Render(provider interface{}, cell interface{}) *Component_Render_Call
Render is a helper method to define mock.On call
- provider core.Provider
- cell *entity.Cell
func (*Component_Expecter) SetConfig ¶
func (_e *Component_Expecter) SetConfig(config interface{}) *Component_SetConfig_Call
SetConfig is a helper method to define mock.On call
- config *entity.Config
type Component_GetHeight_Call ¶
Component_GetHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHeight'
func (*Component_GetHeight_Call) Return ¶
func (_c *Component_GetHeight_Call) Return(_a0 float64) *Component_GetHeight_Call
func (*Component_GetHeight_Call) Run ¶
func (_c *Component_GetHeight_Call) Run(run func(provider core.Provider, cell *entity.Cell)) *Component_GetHeight_Call
func (*Component_GetHeight_Call) RunAndReturn ¶
func (_c *Component_GetHeight_Call) RunAndReturn(run func(core.Provider, *entity.Cell) float64) *Component_GetHeight_Call
type Component_GetStructure_Call ¶
Component_GetStructure_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStructure'
func (*Component_GetStructure_Call) Return ¶
func (_c *Component_GetStructure_Call) Return(_a0 *node.Node[core.Structure]) *Component_GetStructure_Call
func (*Component_GetStructure_Call) Run ¶
func (_c *Component_GetStructure_Call) Run(run func()) *Component_GetStructure_Call
func (*Component_GetStructure_Call) RunAndReturn ¶
func (_c *Component_GetStructure_Call) RunAndReturn(run func() *node.Node[core.Structure]) *Component_GetStructure_Call
type Component_Render_Call ¶
Component_Render_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Render'
func (*Component_Render_Call) Return ¶
func (_c *Component_Render_Call) Return() *Component_Render_Call
func (*Component_Render_Call) Run ¶
func (_c *Component_Render_Call) Run(run func(provider core.Provider, cell *entity.Cell)) *Component_Render_Call
func (*Component_Render_Call) RunAndReturn ¶
func (_c *Component_Render_Call) RunAndReturn(run func(core.Provider, *entity.Cell)) *Component_Render_Call
type Component_SetConfig_Call ¶
Component_SetConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetConfig'
func (*Component_SetConfig_Call) Return ¶
func (_c *Component_SetConfig_Call) Return() *Component_SetConfig_Call
func (*Component_SetConfig_Call) Run ¶
func (_c *Component_SetConfig_Call) Run(run func(config *entity.Config)) *Component_SetConfig_Call
func (*Component_SetConfig_Call) RunAndReturn ¶
func (_c *Component_SetConfig_Call) RunAndReturn(run func(*entity.Config)) *Component_SetConfig_Call
type Document ¶
Document is an autogenerated mock type for the Document type
func NewDocument ¶
NewDocument creates a new instance of Document. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Document) EXPECT ¶
func (_m *Document) EXPECT() *Document_Expecter
type Document_Expecter ¶
type Document_Expecter struct {
// contains filtered or unexported fields
}
func (*Document_Expecter) GetBase64 ¶
func (_e *Document_Expecter) GetBase64() *Document_GetBase64_Call
GetBase64 is a helper method to define mock.On call
func (*Document_Expecter) GetBytes ¶
func (_e *Document_Expecter) GetBytes() *Document_GetBytes_Call
GetBytes is a helper method to define mock.On call
func (*Document_Expecter) GetReport ¶
func (_e *Document_Expecter) GetReport() *Document_GetReport_Call
GetReport is a helper method to define mock.On call
func (*Document_Expecter) Merge ¶
func (_e *Document_Expecter) Merge(ctx interface{}, bytes interface{}) *Document_Merge_Call
Merge is a helper method to define mock.On call
- ctx context.Context
- bytes []byte
func (*Document_Expecter) Save ¶
func (_e *Document_Expecter) Save(file interface{}) *Document_Save_Call
Save is a helper method to define mock.On call
- file string
func (*Document_Expecter) Write ¶
func (_e *Document_Expecter) Write(w interface{}) *Document_Write_Call
Write is a helper method to define mock.On call
- w io.Writer
type Document_GetBase64_Call ¶
Document_GetBase64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBase64'
func (*Document_GetBase64_Call) Return ¶
func (_c *Document_GetBase64_Call) Return(_a0 string) *Document_GetBase64_Call
func (*Document_GetBase64_Call) Run ¶
func (_c *Document_GetBase64_Call) Run(run func()) *Document_GetBase64_Call
func (*Document_GetBase64_Call) RunAndReturn ¶
func (_c *Document_GetBase64_Call) RunAndReturn(run func() string) *Document_GetBase64_Call
type Document_GetBytes_Call ¶
Document_GetBytes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBytes'
func (*Document_GetBytes_Call) Return ¶
func (_c *Document_GetBytes_Call) Return(_a0 []byte) *Document_GetBytes_Call
func (*Document_GetBytes_Call) Run ¶
func (_c *Document_GetBytes_Call) Run(run func()) *Document_GetBytes_Call
func (*Document_GetBytes_Call) RunAndReturn ¶
func (_c *Document_GetBytes_Call) RunAndReturn(run func() []byte) *Document_GetBytes_Call
type Document_GetReport_Call ¶
Document_GetReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReport'
func (*Document_GetReport_Call) Return ¶
func (_c *Document_GetReport_Call) Return(_a0 *metrics.Report) *Document_GetReport_Call
func (*Document_GetReport_Call) Run ¶
func (_c *Document_GetReport_Call) Run(run func()) *Document_GetReport_Call
func (*Document_GetReport_Call) RunAndReturn ¶
func (_c *Document_GetReport_Call) RunAndReturn(run func() *metrics.Report) *Document_GetReport_Call
type Document_Merge_Call ¶
Document_Merge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Merge'
func (*Document_Merge_Call) Return ¶
func (_c *Document_Merge_Call) Return(_a0 error) *Document_Merge_Call
func (*Document_Merge_Call) Run ¶
func (_c *Document_Merge_Call) Run(run func(ctx context.Context, bytes []byte)) *Document_Merge_Call
func (*Document_Merge_Call) RunAndReturn ¶
func (_c *Document_Merge_Call) RunAndReturn(run func(context.Context, []byte) error) *Document_Merge_Call
type Document_Save_Call ¶
Document_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*Document_Save_Call) Return ¶
func (_c *Document_Save_Call) Return(_a0 error) *Document_Save_Call
func (*Document_Save_Call) Run ¶
func (_c *Document_Save_Call) Run(run func(file string)) *Document_Save_Call
func (*Document_Save_Call) RunAndReturn ¶
func (_c *Document_Save_Call) RunAndReturn(run func(string) error) *Document_Save_Call
type Document_Write_Call ¶
Document_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'
func (*Document_Write_Call) Return ¶
func (_c *Document_Write_Call) Return(_a0 int64, _a1 error) *Document_Write_Call
func (*Document_Write_Call) Run ¶
func (_c *Document_Write_Call) Run(run func(w io.Writer)) *Document_Write_Call
func (*Document_Write_Call) RunAndReturn ¶
func (_c *Document_Write_Call) RunAndReturn(run func(io.Writer) (int64, error)) *Document_Write_Call
type Font ¶
Font is an autogenerated mock type for the Font type
func NewFont ¶
NewFont creates a new instance of Font. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Font) EXPECT ¶
func (_m *Font) EXPECT() *Font_Expecter
type Font_Expecter ¶
type Font_Expecter struct {
// contains filtered or unexported fields
}
func (*Font_Expecter) GetColor ¶
func (_e *Font_Expecter) GetColor() *Font_GetColor_Call
GetColor is a helper method to define mock.On call
func (*Font_Expecter) GetFamily ¶
func (_e *Font_Expecter) GetFamily() *Font_GetFamily_Call
GetFamily is a helper method to define mock.On call
func (*Font_Expecter) GetFont ¶
func (_e *Font_Expecter) GetFont() *Font_GetFont_Call
GetFont is a helper method to define mock.On call
func (*Font_Expecter) GetHeight ¶
func (_e *Font_Expecter) GetHeight(family interface{}, style interface{}, size interface{}) *Font_GetHeight_Call
GetHeight is a helper method to define mock.On call
- family string
- style fontstyle.Type
- size float64
func (*Font_Expecter) GetSize ¶
func (_e *Font_Expecter) GetSize() *Font_GetSize_Call
GetSize is a helper method to define mock.On call
func (*Font_Expecter) GetStyle ¶
func (_e *Font_Expecter) GetStyle() *Font_GetStyle_Call
GetStyle is a helper method to define mock.On call
func (*Font_Expecter) SetColor ¶
func (_e *Font_Expecter) SetColor(color interface{}) *Font_SetColor_Call
SetColor is a helper method to define mock.On call
- color *props.Color
func (*Font_Expecter) SetFamily ¶
func (_e *Font_Expecter) SetFamily(family interface{}) *Font_SetFamily_Call
SetFamily is a helper method to define mock.On call
- family string
func (*Font_Expecter) SetFont ¶
func (_e *Font_Expecter) SetFont(family interface{}, style interface{}, size interface{}) *Font_SetFont_Call
SetFont is a helper method to define mock.On call
- family string
- style fontstyle.Type
- size float64
func (*Font_Expecter) SetSize ¶
func (_e *Font_Expecter) SetSize(size interface{}) *Font_SetSize_Call
SetSize is a helper method to define mock.On call
- size float64
func (*Font_Expecter) SetStyle ¶
func (_e *Font_Expecter) SetStyle(style interface{}) *Font_SetStyle_Call
SetStyle is a helper method to define mock.On call
- style fontstyle.Type
type Font_GetColor_Call ¶
Font_GetColor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetColor'
func (*Font_GetColor_Call) Return ¶
func (_c *Font_GetColor_Call) Return(_a0 *props.Color) *Font_GetColor_Call
func (*Font_GetColor_Call) Run ¶
func (_c *Font_GetColor_Call) Run(run func()) *Font_GetColor_Call
func (*Font_GetColor_Call) RunAndReturn ¶
func (_c *Font_GetColor_Call) RunAndReturn(run func() *props.Color) *Font_GetColor_Call
type Font_GetFamily_Call ¶
Font_GetFamily_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFamily'
func (*Font_GetFamily_Call) Return ¶
func (_c *Font_GetFamily_Call) Return(_a0 string) *Font_GetFamily_Call
func (*Font_GetFamily_Call) Run ¶
func (_c *Font_GetFamily_Call) Run(run func()) *Font_GetFamily_Call
func (*Font_GetFamily_Call) RunAndReturn ¶
func (_c *Font_GetFamily_Call) RunAndReturn(run func() string) *Font_GetFamily_Call
type Font_GetFont_Call ¶
Font_GetFont_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFont'
func (*Font_GetFont_Call) Return ¶
func (_c *Font_GetFont_Call) Return(_a0 string, _a1 fontstyle.Type, _a2 float64) *Font_GetFont_Call
func (*Font_GetFont_Call) Run ¶
func (_c *Font_GetFont_Call) Run(run func()) *Font_GetFont_Call
func (*Font_GetFont_Call) RunAndReturn ¶
func (_c *Font_GetFont_Call) RunAndReturn(run func() (string, fontstyle.Type, float64)) *Font_GetFont_Call
type Font_GetHeight_Call ¶
Font_GetHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHeight'
func (*Font_GetHeight_Call) Return ¶
func (_c *Font_GetHeight_Call) Return(_a0 float64) *Font_GetHeight_Call
func (*Font_GetHeight_Call) Run ¶
func (_c *Font_GetHeight_Call) Run(run func(family string, style fontstyle.Type, size float64)) *Font_GetHeight_Call
func (*Font_GetHeight_Call) RunAndReturn ¶
func (_c *Font_GetHeight_Call) RunAndReturn(run func(string, fontstyle.Type, float64) float64) *Font_GetHeight_Call
type Font_GetSize_Call ¶
Font_GetSize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSize'
func (*Font_GetSize_Call) Return ¶
func (_c *Font_GetSize_Call) Return(_a0 float64) *Font_GetSize_Call
func (*Font_GetSize_Call) Run ¶
func (_c *Font_GetSize_Call) Run(run func()) *Font_GetSize_Call
func (*Font_GetSize_Call) RunAndReturn ¶
func (_c *Font_GetSize_Call) RunAndReturn(run func() float64) *Font_GetSize_Call
type Font_GetStyle_Call ¶
Font_GetStyle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStyle'
func (*Font_GetStyle_Call) Return ¶
func (_c *Font_GetStyle_Call) Return(_a0 fontstyle.Type) *Font_GetStyle_Call
func (*Font_GetStyle_Call) Run ¶
func (_c *Font_GetStyle_Call) Run(run func()) *Font_GetStyle_Call
func (*Font_GetStyle_Call) RunAndReturn ¶
func (_c *Font_GetStyle_Call) RunAndReturn(run func() fontstyle.Type) *Font_GetStyle_Call
type Font_SetColor_Call ¶
Font_SetColor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetColor'
func (*Font_SetColor_Call) Return ¶
func (_c *Font_SetColor_Call) Return() *Font_SetColor_Call
func (*Font_SetColor_Call) Run ¶
func (_c *Font_SetColor_Call) Run(run func(color *props.Color)) *Font_SetColor_Call
func (*Font_SetColor_Call) RunAndReturn ¶
func (_c *Font_SetColor_Call) RunAndReturn(run func(*props.Color)) *Font_SetColor_Call
type Font_SetFamily_Call ¶
Font_SetFamily_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFamily'
func (*Font_SetFamily_Call) Return ¶
func (_c *Font_SetFamily_Call) Return() *Font_SetFamily_Call
func (*Font_SetFamily_Call) Run ¶
func (_c *Font_SetFamily_Call) Run(run func(family string)) *Font_SetFamily_Call
func (*Font_SetFamily_Call) RunAndReturn ¶
func (_c *Font_SetFamily_Call) RunAndReturn(run func(string)) *Font_SetFamily_Call
type Font_SetFont_Call ¶
Font_SetFont_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFont'
func (*Font_SetFont_Call) Return ¶
func (_c *Font_SetFont_Call) Return() *Font_SetFont_Call
func (*Font_SetFont_Call) Run ¶
func (_c *Font_SetFont_Call) Run(run func(family string, style fontstyle.Type, size float64)) *Font_SetFont_Call
func (*Font_SetFont_Call) RunAndReturn ¶
func (_c *Font_SetFont_Call) RunAndReturn(run func(string, fontstyle.Type, float64)) *Font_SetFont_Call
type Font_SetSize_Call ¶
Font_SetSize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSize'
func (*Font_SetSize_Call) Return ¶
func (_c *Font_SetSize_Call) Return() *Font_SetSize_Call
func (*Font_SetSize_Call) Run ¶
func (_c *Font_SetSize_Call) Run(run func(size float64)) *Font_SetSize_Call
func (*Font_SetSize_Call) RunAndReturn ¶
func (_c *Font_SetSize_Call) RunAndReturn(run func(float64)) *Font_SetSize_Call
type Font_SetStyle_Call ¶
Font_SetStyle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStyle'
func (*Font_SetStyle_Call) Return ¶
func (_c *Font_SetStyle_Call) Return() *Font_SetStyle_Call
func (*Font_SetStyle_Call) Run ¶
func (_c *Font_SetStyle_Call) Run(run func(style fontstyle.Type)) *Font_SetStyle_Call
func (*Font_SetStyle_Call) RunAndReturn ¶
func (_c *Font_SetStyle_Call) RunAndReturn(run func(fontstyle.Type)) *Font_SetStyle_Call
type Image ¶
Image is an autogenerated mock type for the Image type
func NewImage ¶
NewImage creates a new instance of Image. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Image) Add ¶
func (_m *Image) Add(img *entity.Image, cell *entity.Cell, margins *entity.Margins, prop *props.Rect, _a4 extension.Type, flow bool) error
Add provides a mock function with given fields: img, cell, margins, prop, _a4, flow
func (*Image) EXPECT ¶
func (_m *Image) EXPECT() *Image_Expecter
func (*Image) GetImageDimensions ¶
GetImageDimensions provides a mock function with given fields: img, _a1
type Image_Add_Call ¶
Image_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*Image_Add_Call) Return ¶
func (_c *Image_Add_Call) Return(_a0 error) *Image_Add_Call
type Image_Expecter ¶
type Image_Expecter struct {
// contains filtered or unexported fields
}
func (*Image_Expecter) Add ¶
func (_e *Image_Expecter) Add(img interface{}, cell interface{}, margins interface{}, prop interface{}, _a4 interface{}, flow interface{}) *Image_Add_Call
Add is a helper method to define mock.On call
- img *entity.Image
- cell *entity.Cell
- margins *entity.Margins
- prop *props.Rect
- _a4 extension.Type
- flow bool
func (*Image_Expecter) GetImageDimensions ¶
func (_e *Image_Expecter) GetImageDimensions(img interface{}, _a1 interface{}) *Image_GetImageDimensions_Call
GetImageDimensions is a helper method to define mock.On call
- img *entity.Image
- _a1 extension.Type
type Image_GetImageDimensions_Call ¶
Image_GetImageDimensions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetImageDimensions'
func (*Image_GetImageDimensions_Call) Return ¶
func (_c *Image_GetImageDimensions_Call) Return(_a0 *entity.Dimensions) *Image_GetImageDimensions_Call
func (*Image_GetImageDimensions_Call) Run ¶
func (_c *Image_GetImageDimensions_Call) Run(run func(img *entity.Image, _a1 extension.Type)) *Image_GetImageDimensions_Call
func (*Image_GetImageDimensions_Call) RunAndReturn ¶
func (_c *Image_GetImageDimensions_Call) RunAndReturn(run func(*entity.Image, extension.Type) *entity.Dimensions) *Image_GetImageDimensions_Call
type Line ¶
Line is an autogenerated mock type for the Line type
func NewLine ¶
NewLine creates a new instance of Line. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Line) EXPECT ¶
func (_m *Line) EXPECT() *Line_Expecter
type Line_Add_Call ¶
Line_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*Line_Add_Call) Return ¶
func (_c *Line_Add_Call) Return() *Line_Add_Call
func (*Line_Add_Call) Run ¶
func (_c *Line_Add_Call) Run(run func(cell *entity.Cell, prop *props.Line)) *Line_Add_Call
func (*Line_Add_Call) RunAndReturn ¶
func (_c *Line_Add_Call) RunAndReturn(run func(*entity.Cell, *props.Line)) *Line_Add_Call
type Line_Expecter ¶
type Line_Expecter struct {
// contains filtered or unexported fields
}
func (*Line_Expecter) Add ¶
func (_e *Line_Expecter) Add(cell interface{}, prop interface{}) *Line_Add_Call
Add is a helper method to define mock.On call
- cell *entity.Cell
- prop *props.Line
type Math ¶
Math is an autogenerated mock type for the Math type
func NewMath ¶
NewMath creates a new instance of Math. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Math) EXPECT ¶
func (_m *Math) EXPECT() *Math_Expecter
func (*Math) GetInnerCenterCell ¶
func (_m *Math) GetInnerCenterCell(inner *entity.Dimensions, outer *entity.Dimensions) *entity.Cell
GetInnerCenterCell provides a mock function with given fields: inner, outer
func (*Math) Resize ¶
func (_m *Math) Resize(inner *entity.Dimensions, outer *entity.Dimensions, percent float64, justReferenceWidth bool) *entity.Dimensions
Resize provides a mock function with given fields: inner, outer, percent, justReferenceWidth
type Math_Expecter ¶
type Math_Expecter struct {
// contains filtered or unexported fields
}
func (*Math_Expecter) GetInnerCenterCell ¶
func (_e *Math_Expecter) GetInnerCenterCell(inner interface{}, outer interface{}) *Math_GetInnerCenterCell_Call
GetInnerCenterCell is a helper method to define mock.On call
- inner *entity.Dimensions
- outer *entity.Dimensions
func (*Math_Expecter) Resize ¶
func (_e *Math_Expecter) Resize(inner interface{}, outer interface{}, percent interface{}, justReferenceWidth interface{}) *Math_Resize_Call
Resize is a helper method to define mock.On call
- inner *entity.Dimensions
- outer *entity.Dimensions
- percent float64
- justReferenceWidth bool
type Math_GetInnerCenterCell_Call ¶
Math_GetInnerCenterCell_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInnerCenterCell'
func (*Math_GetInnerCenterCell_Call) Return ¶
func (_c *Math_GetInnerCenterCell_Call) Return(_a0 *entity.Cell) *Math_GetInnerCenterCell_Call
func (*Math_GetInnerCenterCell_Call) Run ¶
func (_c *Math_GetInnerCenterCell_Call) Run(run func(inner *entity.Dimensions, outer *entity.Dimensions)) *Math_GetInnerCenterCell_Call
func (*Math_GetInnerCenterCell_Call) RunAndReturn ¶
func (_c *Math_GetInnerCenterCell_Call) RunAndReturn(run func(*entity.Dimensions, *entity.Dimensions) *entity.Cell) *Math_GetInnerCenterCell_Call
type Math_Resize_Call ¶
Math_Resize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Resize'
func (*Math_Resize_Call) Return ¶
func (_c *Math_Resize_Call) Return(_a0 *entity.Dimensions) *Math_Resize_Call
func (*Math_Resize_Call) Run ¶
func (_c *Math_Resize_Call) Run(run func(inner *entity.Dimensions, outer *entity.Dimensions, percent float64, justReferenceWidth bool)) *Math_Resize_Call
func (*Math_Resize_Call) RunAndReturn ¶
func (_c *Math_Resize_Call) RunAndReturn(run func(*entity.Dimensions, *entity.Dimensions, float64, bool) *entity.Dimensions) *Math_Resize_Call
type Paper ¶
Paper is an autogenerated mock type for the Paper type
func NewPaper ¶
NewPaper creates a new instance of Paper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Paper) AddAutoRow ¶
AddAutoRow provides a mock function with given fields: cols
func (*Paper) EXPECT ¶
func (_m *Paper) EXPECT() *Paper_Expecter
func (*Paper) FitInCurrentPage ¶
FitInCurrentPage provides a mock function with given fields: heightNewLine
func (*Paper) GetCurrentConfig ¶
GetCurrentConfig provides a mock function with no fields
func (*Paper) GetStructure ¶
GetStructure provides a mock function with no fields
func (*Paper) RegisterFooter ¶
RegisterFooter provides a mock function with given fields: rows
type Paper_AddAutoRow_Call ¶
Paper_AddAutoRow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddAutoRow'
func (*Paper_AddAutoRow_Call) Return ¶
func (_c *Paper_AddAutoRow_Call) Return(_a0 core.Row) *Paper_AddAutoRow_Call
func (*Paper_AddAutoRow_Call) Run ¶
func (_c *Paper_AddAutoRow_Call) Run(run func(cols ...core.Col)) *Paper_AddAutoRow_Call
func (*Paper_AddAutoRow_Call) RunAndReturn ¶
func (_c *Paper_AddAutoRow_Call) RunAndReturn(run func(...core.Col) core.Row) *Paper_AddAutoRow_Call
type Paper_AddHTML_Call ¶
Paper_AddHTML_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddHTML'
func (*Paper_AddHTML_Call) Return ¶
func (_c *Paper_AddHTML_Call) Return(_a0 error) *Paper_AddHTML_Call
func (*Paper_AddHTML_Call) Run ¶
func (_c *Paper_AddHTML_Call) Run(run func(ctx context.Context, htmlStr string)) *Paper_AddHTML_Call
func (*Paper_AddHTML_Call) RunAndReturn ¶
func (_c *Paper_AddHTML_Call) RunAndReturn(run func(context.Context, string) error) *Paper_AddHTML_Call
type Paper_AddPages_Call ¶
Paper_AddPages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddPages'
func (*Paper_AddPages_Call) Return ¶
func (_c *Paper_AddPages_Call) Return() *Paper_AddPages_Call
func (*Paper_AddPages_Call) Run ¶
func (_c *Paper_AddPages_Call) Run(run func(pages ...core.Page)) *Paper_AddPages_Call
func (*Paper_AddPages_Call) RunAndReturn ¶
func (_c *Paper_AddPages_Call) RunAndReturn(run func(...core.Page)) *Paper_AddPages_Call
type Paper_AddRow_Call ¶
Paper_AddRow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRow'
func (*Paper_AddRow_Call) Return ¶
func (_c *Paper_AddRow_Call) Return(_a0 core.Row) *Paper_AddRow_Call
func (*Paper_AddRow_Call) Run ¶
func (_c *Paper_AddRow_Call) Run(run func(rowHeight float64, cols ...core.Col)) *Paper_AddRow_Call
func (*Paper_AddRow_Call) RunAndReturn ¶
func (_c *Paper_AddRow_Call) RunAndReturn(run func(float64, ...core.Col) core.Row) *Paper_AddRow_Call
type Paper_AddRows_Call ¶
Paper_AddRows_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRows'
func (*Paper_AddRows_Call) Return ¶
func (_c *Paper_AddRows_Call) Return() *Paper_AddRows_Call
func (*Paper_AddRows_Call) Run ¶
func (_c *Paper_AddRows_Call) Run(run func(rows ...core.Row)) *Paper_AddRows_Call
func (*Paper_AddRows_Call) RunAndReturn ¶
func (_c *Paper_AddRows_Call) RunAndReturn(run func(...core.Row)) *Paper_AddRows_Call
type Paper_Expecter ¶
type Paper_Expecter struct {
// contains filtered or unexported fields
}
func (*Paper_Expecter) AddAutoRow ¶
func (_e *Paper_Expecter) AddAutoRow(cols ...interface{}) *Paper_AddAutoRow_Call
AddAutoRow is a helper method to define mock.On call
- cols ...core.Col
func (*Paper_Expecter) AddHTML ¶
func (_e *Paper_Expecter) AddHTML(ctx interface{}, htmlStr interface{}) *Paper_AddHTML_Call
AddHTML is a helper method to define mock.On call
- ctx context.Context
- htmlStr string
func (*Paper_Expecter) AddPages ¶
func (_e *Paper_Expecter) AddPages(pages ...interface{}) *Paper_AddPages_Call
AddPages is a helper method to define mock.On call
- pages ...core.Page
func (*Paper_Expecter) AddRow ¶
func (_e *Paper_Expecter) AddRow(rowHeight interface{}, cols ...interface{}) *Paper_AddRow_Call
AddRow is a helper method to define mock.On call
- rowHeight float64
- cols ...core.Col
func (*Paper_Expecter) AddRows ¶
func (_e *Paper_Expecter) AddRows(rows ...interface{}) *Paper_AddRows_Call
AddRows is a helper method to define mock.On call
- rows ...core.Row
func (*Paper_Expecter) FitInCurrentPage ¶
func (_e *Paper_Expecter) FitInCurrentPage(heightNewLine interface{}) *Paper_FitInCurrentPage_Call
FitInCurrentPage is a helper method to define mock.On call
- heightNewLine float64
func (*Paper_Expecter) Generate ¶
func (_e *Paper_Expecter) Generate(ctx interface{}) *Paper_Generate_Call
Generate is a helper method to define mock.On call
- ctx context.Context
func (*Paper_Expecter) GetCurrentConfig ¶
func (_e *Paper_Expecter) GetCurrentConfig() *Paper_GetCurrentConfig_Call
GetCurrentConfig is a helper method to define mock.On call
func (*Paper_Expecter) GetStructure ¶
func (_e *Paper_Expecter) GetStructure() *Paper_GetStructure_Call
GetStructure is a helper method to define mock.On call
func (*Paper_Expecter) RegisterFooter ¶
func (_e *Paper_Expecter) RegisterFooter(rows ...interface{}) *Paper_RegisterFooter_Call
RegisterFooter is a helper method to define mock.On call
- rows ...core.Row
func (*Paper_Expecter) RegisterHeader ¶
func (_e *Paper_Expecter) RegisterHeader(rows ...interface{}) *Paper_RegisterHeader_Call
RegisterHeader is a helper method to define mock.On call
- rows ...core.Row
type Paper_FitInCurrentPage_Call ¶
Paper_FitInCurrentPage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FitInCurrentPage'
func (*Paper_FitInCurrentPage_Call) Return ¶
func (_c *Paper_FitInCurrentPage_Call) Return(_a0 bool) *Paper_FitInCurrentPage_Call
func (*Paper_FitInCurrentPage_Call) Run ¶
func (_c *Paper_FitInCurrentPage_Call) Run(run func(heightNewLine float64)) *Paper_FitInCurrentPage_Call
func (*Paper_FitInCurrentPage_Call) RunAndReturn ¶
func (_c *Paper_FitInCurrentPage_Call) RunAndReturn(run func(float64) bool) *Paper_FitInCurrentPage_Call
type Paper_Generate_Call ¶
Paper_Generate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Generate'
func (*Paper_Generate_Call) Return ¶
func (_c *Paper_Generate_Call) Return(_a0 *core.Pdf, _a1 error) *Paper_Generate_Call
func (*Paper_Generate_Call) Run ¶
func (_c *Paper_Generate_Call) Run(run func(ctx context.Context)) *Paper_Generate_Call
func (*Paper_Generate_Call) RunAndReturn ¶
func (_c *Paper_Generate_Call) RunAndReturn(run func(context.Context) (*core.Pdf, error)) *Paper_Generate_Call
type Paper_GetCurrentConfig_Call ¶
Paper_GetCurrentConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentConfig'
func (*Paper_GetCurrentConfig_Call) Return ¶
func (_c *Paper_GetCurrentConfig_Call) Return(_a0 *entity.Config) *Paper_GetCurrentConfig_Call
func (*Paper_GetCurrentConfig_Call) Run ¶
func (_c *Paper_GetCurrentConfig_Call) Run(run func()) *Paper_GetCurrentConfig_Call
func (*Paper_GetCurrentConfig_Call) RunAndReturn ¶
func (_c *Paper_GetCurrentConfig_Call) RunAndReturn(run func() *entity.Config) *Paper_GetCurrentConfig_Call
type Paper_GetStructure_Call ¶
Paper_GetStructure_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStructure'
func (*Paper_GetStructure_Call) Return ¶
func (_c *Paper_GetStructure_Call) Return(_a0 *node.Node[core.Structure]) *Paper_GetStructure_Call
func (*Paper_GetStructure_Call) Run ¶
func (_c *Paper_GetStructure_Call) Run(run func()) *Paper_GetStructure_Call
func (*Paper_GetStructure_Call) RunAndReturn ¶
func (_c *Paper_GetStructure_Call) RunAndReturn(run func() *node.Node[core.Structure]) *Paper_GetStructure_Call
type Paper_RegisterFooter_Call ¶
type Paper_RegisterFooter_Call struct {
}
Paper_RegisterFooter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterFooter'
func (*Paper_RegisterFooter_Call) Return ¶
func (_c *Paper_RegisterFooter_Call) Return(_a0 error) *Paper_RegisterFooter_Call
func (*Paper_RegisterFooter_Call) Run ¶
func (_c *Paper_RegisterFooter_Call) Run(run func(rows ...core.Row)) *Paper_RegisterFooter_Call
func (*Paper_RegisterFooter_Call) RunAndReturn ¶
func (_c *Paper_RegisterFooter_Call) RunAndReturn(run func(...core.Row) error) *Paper_RegisterFooter_Call
type Paper_RegisterHeader_Call ¶
Paper_RegisterHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterHeader'
func (*Paper_RegisterHeader_Call) Return ¶
func (_c *Paper_RegisterHeader_Call) Return(_a0 error) *Paper_RegisterHeader_Call
func (*Paper_RegisterHeader_Call) Run ¶
func (_c *Paper_RegisterHeader_Call) Run(run func(rows ...core.Row)) *Paper_RegisterHeader_Call
func (*Paper_RegisterHeader_Call) RunAndReturn ¶
func (_c *Paper_RegisterHeader_Call) RunAndReturn(run func(...core.Row) error) *Paper_RegisterHeader_Call
type Provider ¶
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶
NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Provider) AddBackgroundImageFromBytes ¶
func (_m *Provider) AddBackgroundImageFromBytes(bytes []byte, cell *entity.Cell, prop *props.Rect, _a3 extension.Type)
AddBackgroundImageFromBytes provides a mock function with given fields: bytes, cell, prop, _a3
func (*Provider) AddBarCode ¶
AddBarCode provides a mock function with given fields: code, cell, prop
func (*Provider) AddCheckbox ¶
AddCheckbox provides a mock function with given fields: label, cell, prop
func (*Provider) AddImageFromBytes ¶
func (_m *Provider) AddImageFromBytes(bytes []byte, cell *entity.Cell, prop *props.Rect, _a3 extension.Type)
AddImageFromBytes provides a mock function with given fields: bytes, cell, prop, _a3
func (*Provider) AddImageFromFile ¶
AddImageFromFile provides a mock function with given fields: value, cell, prop
func (*Provider) AddMatrixCode ¶
AddMatrixCode provides a mock function with given fields: code, cell, prop
func (*Provider) CreateCol ¶
func (_m *Provider) CreateCol(width float64, height float64, config *entity.Config, prop *props.Cell)
CreateCol provides a mock function with given fields: width, height, config, prop
func (*Provider) EXPECT ¶
func (_m *Provider) EXPECT() *Provider_Expecter
func (*Provider) GenerateBytes ¶
GenerateBytes provides a mock function with no fields
func (*Provider) GetDimensionsByImage ¶
func (_m *Provider) GetDimensionsByImage(file string) (*entity.Dimensions, error)
GetDimensionsByImage provides a mock function with given fields: file
func (*Provider) GetDimensionsByImageByte ¶
func (_m *Provider) GetDimensionsByImageByte(bytes []byte, _a1 extension.Type) (*entity.Dimensions, error)
GetDimensionsByImageByte provides a mock function with given fields: bytes, _a1
func (*Provider) GetDimensionsByMatrixCode ¶
func (_m *Provider) GetDimensionsByMatrixCode(code string) (*entity.Dimensions, error)
GetDimensionsByMatrixCode provides a mock function with given fields: code
func (*Provider) GetDimensionsByQrCode ¶
func (_m *Provider) GetDimensionsByQrCode(code string) (*entity.Dimensions, error)
GetDimensionsByQrCode provides a mock function with given fields: code
func (*Provider) GetFontHeight ¶
GetFontHeight provides a mock function with given fields: prop
func (*Provider) GetLinesQuantity ¶
GetLinesQuantity provides a mock function with given fields: text, textProp, colWidth
func (*Provider) SetCompression ¶
SetCompression provides a mock function with given fields: compression
func (*Provider) SetMetadata ¶
SetMetadata provides a mock function with given fields: metadata
func (*Provider) SetProtection ¶
func (_m *Provider) SetProtection(protection *entity.Protection)
SetProtection provides a mock function with given fields: protection
type Provider_AddBackgroundImageFromBytes_Call ¶
Provider_AddBackgroundImageFromBytes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddBackgroundImageFromBytes'
func (*Provider_AddBackgroundImageFromBytes_Call) Return ¶
func (_c *Provider_AddBackgroundImageFromBytes_Call) Return() *Provider_AddBackgroundImageFromBytes_Call
func (*Provider_AddBackgroundImageFromBytes_Call) Run ¶
func (_c *Provider_AddBackgroundImageFromBytes_Call) Run(run func(bytes []byte, cell *entity.Cell, prop *props.Rect, _a3 extension.Type)) *Provider_AddBackgroundImageFromBytes_Call
func (*Provider_AddBackgroundImageFromBytes_Call) RunAndReturn ¶
func (_c *Provider_AddBackgroundImageFromBytes_Call) RunAndReturn(run func([]byte, *entity.Cell, *props.Rect, extension.Type)) *Provider_AddBackgroundImageFromBytes_Call
type Provider_AddBarCode_Call ¶
Provider_AddBarCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddBarCode'
func (*Provider_AddBarCode_Call) Return ¶
func (_c *Provider_AddBarCode_Call) Return() *Provider_AddBarCode_Call
func (*Provider_AddBarCode_Call) Run ¶
func (_c *Provider_AddBarCode_Call) Run(run func(code string, cell *entity.Cell, prop *props.Barcode)) *Provider_AddBarCode_Call
func (*Provider_AddBarCode_Call) RunAndReturn ¶
func (_c *Provider_AddBarCode_Call) RunAndReturn(run func(string, *entity.Cell, *props.Barcode)) *Provider_AddBarCode_Call
type Provider_AddCheckbox_Call ¶
Provider_AddCheckbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCheckbox'
func (*Provider_AddCheckbox_Call) Return ¶
func (_c *Provider_AddCheckbox_Call) Return() *Provider_AddCheckbox_Call
func (*Provider_AddCheckbox_Call) Run ¶
func (_c *Provider_AddCheckbox_Call) Run(run func(label string, cell *entity.Cell, prop *props.Checkbox)) *Provider_AddCheckbox_Call
func (*Provider_AddCheckbox_Call) RunAndReturn ¶
func (_c *Provider_AddCheckbox_Call) RunAndReturn(run func(string, *entity.Cell, *props.Checkbox)) *Provider_AddCheckbox_Call
type Provider_AddImageFromBytes_Call ¶
Provider_AddImageFromBytes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddImageFromBytes'
func (*Provider_AddImageFromBytes_Call) Return ¶
func (_c *Provider_AddImageFromBytes_Call) Return() *Provider_AddImageFromBytes_Call
func (*Provider_AddImageFromBytes_Call) Run ¶
func (_c *Provider_AddImageFromBytes_Call) Run(run func(bytes []byte, cell *entity.Cell, prop *props.Rect, _a3 extension.Type)) *Provider_AddImageFromBytes_Call
func (*Provider_AddImageFromBytes_Call) RunAndReturn ¶
func (_c *Provider_AddImageFromBytes_Call) RunAndReturn(run func([]byte, *entity.Cell, *props.Rect, extension.Type)) *Provider_AddImageFromBytes_Call
type Provider_AddImageFromFile_Call ¶
Provider_AddImageFromFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddImageFromFile'
func (*Provider_AddImageFromFile_Call) Return ¶
func (_c *Provider_AddImageFromFile_Call) Return() *Provider_AddImageFromFile_Call
func (*Provider_AddImageFromFile_Call) Run ¶
func (_c *Provider_AddImageFromFile_Call) Run(run func(value string, cell *entity.Cell, prop *props.Rect)) *Provider_AddImageFromFile_Call
func (*Provider_AddImageFromFile_Call) RunAndReturn ¶
func (_c *Provider_AddImageFromFile_Call) RunAndReturn(run func(string, *entity.Cell, *props.Rect)) *Provider_AddImageFromFile_Call
type Provider_AddLine_Call ¶
Provider_AddLine_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddLine'
func (*Provider_AddLine_Call) Return ¶
func (_c *Provider_AddLine_Call) Return() *Provider_AddLine_Call
func (*Provider_AddLine_Call) Run ¶
func (_c *Provider_AddLine_Call) Run(run func(cell *entity.Cell, prop *props.Line)) *Provider_AddLine_Call
func (*Provider_AddLine_Call) RunAndReturn ¶
func (_c *Provider_AddLine_Call) RunAndReturn(run func(*entity.Cell, *props.Line)) *Provider_AddLine_Call
type Provider_AddMatrixCode_Call ¶
Provider_AddMatrixCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddMatrixCode'
func (*Provider_AddMatrixCode_Call) Return ¶
func (_c *Provider_AddMatrixCode_Call) Return() *Provider_AddMatrixCode_Call
func (*Provider_AddMatrixCode_Call) Run ¶
func (_c *Provider_AddMatrixCode_Call) Run(run func(code string, cell *entity.Cell, prop *props.Rect)) *Provider_AddMatrixCode_Call
func (*Provider_AddMatrixCode_Call) RunAndReturn ¶
func (_c *Provider_AddMatrixCode_Call) RunAndReturn(run func(string, *entity.Cell, *props.Rect)) *Provider_AddMatrixCode_Call
type Provider_AddQrCode_Call ¶
Provider_AddQrCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddQrCode'
func (*Provider_AddQrCode_Call) Return ¶
func (_c *Provider_AddQrCode_Call) Return() *Provider_AddQrCode_Call
func (*Provider_AddQrCode_Call) Run ¶
func (_c *Provider_AddQrCode_Call) Run(run func(code string, cell *entity.Cell, rect *props.Rect)) *Provider_AddQrCode_Call
func (*Provider_AddQrCode_Call) RunAndReturn ¶
func (_c *Provider_AddQrCode_Call) RunAndReturn(run func(string, *entity.Cell, *props.Rect)) *Provider_AddQrCode_Call
type Provider_AddText_Call ¶
Provider_AddText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddText'
func (*Provider_AddText_Call) Return ¶
func (_c *Provider_AddText_Call) Return() *Provider_AddText_Call
func (*Provider_AddText_Call) Run ¶
func (_c *Provider_AddText_Call) Run(run func(text string, cell *entity.Cell, prop *props.Text)) *Provider_AddText_Call
func (*Provider_AddText_Call) RunAndReturn ¶
func (_c *Provider_AddText_Call) RunAndReturn(run func(string, *entity.Cell, *props.Text)) *Provider_AddText_Call
type Provider_CreateCol_Call ¶
Provider_CreateCol_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCol'
func (*Provider_CreateCol_Call) Return ¶
func (_c *Provider_CreateCol_Call) Return() *Provider_CreateCol_Call
func (*Provider_CreateCol_Call) Run ¶
func (_c *Provider_CreateCol_Call) Run(run func(width float64, height float64, config *entity.Config, prop *props.Cell)) *Provider_CreateCol_Call
func (*Provider_CreateCol_Call) RunAndReturn ¶
func (_c *Provider_CreateCol_Call) RunAndReturn(run func(float64, float64, *entity.Config, *props.Cell)) *Provider_CreateCol_Call
type Provider_CreateRow_Call ¶
Provider_CreateRow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRow'
func (*Provider_CreateRow_Call) Return ¶
func (_c *Provider_CreateRow_Call) Return() *Provider_CreateRow_Call
func (*Provider_CreateRow_Call) Run ¶
func (_c *Provider_CreateRow_Call) Run(run func(height float64)) *Provider_CreateRow_Call
func (*Provider_CreateRow_Call) RunAndReturn ¶
func (_c *Provider_CreateRow_Call) RunAndReturn(run func(float64)) *Provider_CreateRow_Call
type Provider_Expecter ¶
type Provider_Expecter struct {
// contains filtered or unexported fields
}
func (*Provider_Expecter) AddBackgroundImageFromBytes ¶
func (_e *Provider_Expecter) AddBackgroundImageFromBytes(bytes interface{}, cell interface{}, prop interface{}, _a3 interface{}) *Provider_AddBackgroundImageFromBytes_Call
AddBackgroundImageFromBytes is a helper method to define mock.On call
- bytes []byte
- cell *entity.Cell
- prop *props.Rect
- _a3 extension.Type
func (*Provider_Expecter) AddBarCode ¶
func (_e *Provider_Expecter) AddBarCode(code interface{}, cell interface{}, prop interface{}) *Provider_AddBarCode_Call
AddBarCode is a helper method to define mock.On call
- code string
- cell *entity.Cell
- prop *props.Barcode
func (*Provider_Expecter) AddCheckbox ¶
func (_e *Provider_Expecter) AddCheckbox(label interface{}, cell interface{}, prop interface{}) *Provider_AddCheckbox_Call
AddCheckbox is a helper method to define mock.On call
- label string
- cell *entity.Cell
- prop *props.Checkbox
func (*Provider_Expecter) AddImageFromBytes ¶
func (_e *Provider_Expecter) AddImageFromBytes(bytes interface{}, cell interface{}, prop interface{}, _a3 interface{}) *Provider_AddImageFromBytes_Call
AddImageFromBytes is a helper method to define mock.On call
- bytes []byte
- cell *entity.Cell
- prop *props.Rect
- _a3 extension.Type
func (*Provider_Expecter) AddImageFromFile ¶
func (_e *Provider_Expecter) AddImageFromFile(value interface{}, cell interface{}, prop interface{}) *Provider_AddImageFromFile_Call
AddImageFromFile is a helper method to define mock.On call
- value string
- cell *entity.Cell
- prop *props.Rect
func (*Provider_Expecter) AddLine ¶
func (_e *Provider_Expecter) AddLine(cell interface{}, prop interface{}) *Provider_AddLine_Call
AddLine is a helper method to define mock.On call
- cell *entity.Cell
- prop *props.Line
func (*Provider_Expecter) AddMatrixCode ¶
func (_e *Provider_Expecter) AddMatrixCode(code interface{}, cell interface{}, prop interface{}) *Provider_AddMatrixCode_Call
AddMatrixCode is a helper method to define mock.On call
- code string
- cell *entity.Cell
- prop *props.Rect
func (*Provider_Expecter) AddQrCode ¶
func (_e *Provider_Expecter) AddQrCode(code interface{}, cell interface{}, rect interface{}) *Provider_AddQrCode_Call
AddQrCode is a helper method to define mock.On call
- code string
- cell *entity.Cell
- rect *props.Rect
func (*Provider_Expecter) AddText ¶
func (_e *Provider_Expecter) AddText(text interface{}, cell interface{}, prop interface{}) *Provider_AddText_Call
AddText is a helper method to define mock.On call
- text string
- cell *entity.Cell
- prop *props.Text
func (*Provider_Expecter) CreateCol ¶
func (_e *Provider_Expecter) CreateCol(width interface{}, height interface{}, config interface{}, prop interface{}) *Provider_CreateCol_Call
CreateCol is a helper method to define mock.On call
- width float64
- height float64
- config *entity.Config
- prop *props.Cell
func (*Provider_Expecter) CreateRow ¶
func (_e *Provider_Expecter) CreateRow(height interface{}) *Provider_CreateRow_Call
CreateRow is a helper method to define mock.On call
- height float64
func (*Provider_Expecter) GenerateBytes ¶
func (_e *Provider_Expecter) GenerateBytes() *Provider_GenerateBytes_Call
GenerateBytes is a helper method to define mock.On call
func (*Provider_Expecter) GetDimensionsByImage ¶
func (_e *Provider_Expecter) GetDimensionsByImage(file interface{}) *Provider_GetDimensionsByImage_Call
GetDimensionsByImage is a helper method to define mock.On call
- file string
func (*Provider_Expecter) GetDimensionsByImageByte ¶
func (_e *Provider_Expecter) GetDimensionsByImageByte(bytes interface{}, _a1 interface{}) *Provider_GetDimensionsByImageByte_Call
GetDimensionsByImageByte is a helper method to define mock.On call
- bytes []byte
- _a1 extension.Type
func (*Provider_Expecter) GetDimensionsByMatrixCode ¶
func (_e *Provider_Expecter) GetDimensionsByMatrixCode(code interface{}) *Provider_GetDimensionsByMatrixCode_Call
GetDimensionsByMatrixCode is a helper method to define mock.On call
- code string
func (*Provider_Expecter) GetDimensionsByQrCode ¶
func (_e *Provider_Expecter) GetDimensionsByQrCode(code interface{}) *Provider_GetDimensionsByQrCode_Call
GetDimensionsByQrCode is a helper method to define mock.On call
- code string
func (*Provider_Expecter) GetFontHeight ¶
func (_e *Provider_Expecter) GetFontHeight(prop interface{}) *Provider_GetFontHeight_Call
GetFontHeight is a helper method to define mock.On call
- prop *props.Font
func (*Provider_Expecter) GetLinesQuantity ¶
func (_e *Provider_Expecter) GetLinesQuantity(text interface{}, textProp interface{}, colWidth interface{}) *Provider_GetLinesQuantity_Call
GetLinesQuantity is a helper method to define mock.On call
- text string
- textProp *props.Text
- colWidth float64
func (*Provider_Expecter) SetCompression ¶
func (_e *Provider_Expecter) SetCompression(compression interface{}) *Provider_SetCompression_Call
SetCompression is a helper method to define mock.On call
- compression bool
func (*Provider_Expecter) SetMetadata ¶
func (_e *Provider_Expecter) SetMetadata(metadata interface{}) *Provider_SetMetadata_Call
SetMetadata is a helper method to define mock.On call
- metadata *entity.Metadata
func (*Provider_Expecter) SetProtection ¶
func (_e *Provider_Expecter) SetProtection(protection interface{}) *Provider_SetProtection_Call
SetProtection is a helper method to define mock.On call
- protection *entity.Protection
type Provider_GenerateBytes_Call ¶
Provider_GenerateBytes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateBytes'
func (*Provider_GenerateBytes_Call) Return ¶
func (_c *Provider_GenerateBytes_Call) Return(_a0 []byte, _a1 error) *Provider_GenerateBytes_Call
func (*Provider_GenerateBytes_Call) Run ¶
func (_c *Provider_GenerateBytes_Call) Run(run func()) *Provider_GenerateBytes_Call
func (*Provider_GenerateBytes_Call) RunAndReturn ¶
func (_c *Provider_GenerateBytes_Call) RunAndReturn(run func() ([]byte, error)) *Provider_GenerateBytes_Call
type Provider_GetDimensionsByImageByte_Call ¶
Provider_GetDimensionsByImageByte_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDimensionsByImageByte'
func (*Provider_GetDimensionsByImageByte_Call) Return ¶
func (_c *Provider_GetDimensionsByImageByte_Call) Return(_a0 *entity.Dimensions, _a1 error) *Provider_GetDimensionsByImageByte_Call
func (*Provider_GetDimensionsByImageByte_Call) Run ¶
func (_c *Provider_GetDimensionsByImageByte_Call) Run(run func(bytes []byte, _a1 extension.Type)) *Provider_GetDimensionsByImageByte_Call
func (*Provider_GetDimensionsByImageByte_Call) RunAndReturn ¶
func (_c *Provider_GetDimensionsByImageByte_Call) RunAndReturn(run func([]byte, extension.Type) (*entity.Dimensions, error)) *Provider_GetDimensionsByImageByte_Call
type Provider_GetDimensionsByImage_Call ¶
Provider_GetDimensionsByImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDimensionsByImage'
func (*Provider_GetDimensionsByImage_Call) Return ¶
func (_c *Provider_GetDimensionsByImage_Call) Return(_a0 *entity.Dimensions, _a1 error) *Provider_GetDimensionsByImage_Call
func (*Provider_GetDimensionsByImage_Call) Run ¶
func (_c *Provider_GetDimensionsByImage_Call) Run(run func(file string)) *Provider_GetDimensionsByImage_Call
func (*Provider_GetDimensionsByImage_Call) RunAndReturn ¶
func (_c *Provider_GetDimensionsByImage_Call) RunAndReturn(run func(string) (*entity.Dimensions, error)) *Provider_GetDimensionsByImage_Call
type Provider_GetDimensionsByMatrixCode_Call ¶
Provider_GetDimensionsByMatrixCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDimensionsByMatrixCode'
func (*Provider_GetDimensionsByMatrixCode_Call) Return ¶
func (_c *Provider_GetDimensionsByMatrixCode_Call) Return(_a0 *entity.Dimensions, _a1 error) *Provider_GetDimensionsByMatrixCode_Call
func (*Provider_GetDimensionsByMatrixCode_Call) Run ¶
func (_c *Provider_GetDimensionsByMatrixCode_Call) Run(run func(code string)) *Provider_GetDimensionsByMatrixCode_Call
func (*Provider_GetDimensionsByMatrixCode_Call) RunAndReturn ¶
func (_c *Provider_GetDimensionsByMatrixCode_Call) RunAndReturn(run func(string) (*entity.Dimensions, error)) *Provider_GetDimensionsByMatrixCode_Call
type Provider_GetDimensionsByQrCode_Call ¶
Provider_GetDimensionsByQrCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDimensionsByQrCode'
func (*Provider_GetDimensionsByQrCode_Call) Return ¶
func (_c *Provider_GetDimensionsByQrCode_Call) Return(_a0 *entity.Dimensions, _a1 error) *Provider_GetDimensionsByQrCode_Call
func (*Provider_GetDimensionsByQrCode_Call) Run ¶
func (_c *Provider_GetDimensionsByQrCode_Call) Run(run func(code string)) *Provider_GetDimensionsByQrCode_Call
func (*Provider_GetDimensionsByQrCode_Call) RunAndReturn ¶
func (_c *Provider_GetDimensionsByQrCode_Call) RunAndReturn(run func(string) (*entity.Dimensions, error)) *Provider_GetDimensionsByQrCode_Call
type Provider_GetFontHeight_Call ¶
Provider_GetFontHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFontHeight'
func (*Provider_GetFontHeight_Call) Return ¶
func (_c *Provider_GetFontHeight_Call) Return(_a0 float64) *Provider_GetFontHeight_Call
func (*Provider_GetFontHeight_Call) Run ¶
func (_c *Provider_GetFontHeight_Call) Run(run func(prop *props.Font)) *Provider_GetFontHeight_Call
func (*Provider_GetFontHeight_Call) RunAndReturn ¶
func (_c *Provider_GetFontHeight_Call) RunAndReturn(run func(*props.Font) float64) *Provider_GetFontHeight_Call
type Provider_GetLinesQuantity_Call ¶
Provider_GetLinesQuantity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLinesQuantity'
func (*Provider_GetLinesQuantity_Call) Return ¶
func (_c *Provider_GetLinesQuantity_Call) Return(_a0 int) *Provider_GetLinesQuantity_Call
func (*Provider_GetLinesQuantity_Call) Run ¶
func (_c *Provider_GetLinesQuantity_Call) Run(run func(text string, textProp *props.Text, colWidth float64)) *Provider_GetLinesQuantity_Call
func (*Provider_GetLinesQuantity_Call) RunAndReturn ¶
func (_c *Provider_GetLinesQuantity_Call) RunAndReturn(run func(string, *props.Text, float64) int) *Provider_GetLinesQuantity_Call
type Provider_SetCompression_Call ¶
Provider_SetCompression_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCompression'
func (*Provider_SetCompression_Call) Return ¶
func (_c *Provider_SetCompression_Call) Return() *Provider_SetCompression_Call
func (*Provider_SetCompression_Call) Run ¶
func (_c *Provider_SetCompression_Call) Run(run func(compression bool)) *Provider_SetCompression_Call
func (*Provider_SetCompression_Call) RunAndReturn ¶
func (_c *Provider_SetCompression_Call) RunAndReturn(run func(bool)) *Provider_SetCompression_Call
type Provider_SetMetadata_Call ¶
Provider_SetMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetMetadata'
func (*Provider_SetMetadata_Call) Return ¶
func (_c *Provider_SetMetadata_Call) Return() *Provider_SetMetadata_Call
func (*Provider_SetMetadata_Call) Run ¶
func (_c *Provider_SetMetadata_Call) Run(run func(metadata *entity.Metadata)) *Provider_SetMetadata_Call
func (*Provider_SetMetadata_Call) RunAndReturn ¶
func (_c *Provider_SetMetadata_Call) RunAndReturn(run func(*entity.Metadata)) *Provider_SetMetadata_Call
type Provider_SetProtection_Call ¶
Provider_SetProtection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetProtection'
func (*Provider_SetProtection_Call) Return ¶
func (_c *Provider_SetProtection_Call) Return() *Provider_SetProtection_Call
func (*Provider_SetProtection_Call) Run ¶
func (_c *Provider_SetProtection_Call) Run(run func(protection *entity.Protection)) *Provider_SetProtection_Call
func (*Provider_SetProtection_Call) RunAndReturn ¶
func (_c *Provider_SetProtection_Call) RunAndReturn(run func(*entity.Protection)) *Provider_SetProtection_Call
type RichTextProvider ¶
RichTextProvider is an autogenerated mock type for the RichTextProvider type
func NewRichTextProvider ¶
func NewRichTextProvider(t interface {
mock.TestingT
Cleanup(func())
},
) *RichTextProvider
NewRichTextProvider creates a new instance of RichTextProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RichTextProvider) AddRichText ¶
func (_m *RichTextProvider) AddRichText(runs []props.RichRun, cell *entity.Cell, prop *props.RichText)
AddRichText provides a mock function with given fields: runs, cell, prop
func (*RichTextProvider) AddTextAt ¶
AddTextAt provides a mock function with given fields: x, y, text, prop
func (*RichTextProvider) EXPECT ¶
func (_m *RichTextProvider) EXPECT() *RichTextProvider_Expecter
func (*RichTextProvider) MeasureString ¶
func (_m *RichTextProvider) MeasureString(text string, prop *props.Text) float64
MeasureString provides a mock function with given fields: text, prop
type RichTextProvider_AddRichText_Call ¶
RichTextProvider_AddRichText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRichText'
func (*RichTextProvider_AddRichText_Call) Return ¶
func (_c *RichTextProvider_AddRichText_Call) Return() *RichTextProvider_AddRichText_Call
func (*RichTextProvider_AddRichText_Call) Run ¶
func (_c *RichTextProvider_AddRichText_Call) Run(run func(runs []props.RichRun, cell *entity.Cell, prop *props.RichText)) *RichTextProvider_AddRichText_Call
func (*RichTextProvider_AddRichText_Call) RunAndReturn ¶
func (_c *RichTextProvider_AddRichText_Call) RunAndReturn(run func([]props.RichRun, *entity.Cell, *props.RichText)) *RichTextProvider_AddRichText_Call
type RichTextProvider_AddTextAt_Call ¶
RichTextProvider_AddTextAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddTextAt'
func (*RichTextProvider_AddTextAt_Call) Return ¶
func (_c *RichTextProvider_AddTextAt_Call) Return() *RichTextProvider_AddTextAt_Call
func (*RichTextProvider_AddTextAt_Call) Run ¶
func (_c *RichTextProvider_AddTextAt_Call) Run(run func(x float64, y float64, text string, prop *props.Text)) *RichTextProvider_AddTextAt_Call
func (*RichTextProvider_AddTextAt_Call) RunAndReturn ¶
func (_c *RichTextProvider_AddTextAt_Call) RunAndReturn(run func(float64, float64, string, *props.Text)) *RichTextProvider_AddTextAt_Call
type RichTextProvider_Expecter ¶
type RichTextProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*RichTextProvider_Expecter) AddRichText ¶
func (_e *RichTextProvider_Expecter) AddRichText(runs interface{}, cell interface{}, prop interface{}) *RichTextProvider_AddRichText_Call
AddRichText is a helper method to define mock.On call
- runs []props.RichRun
- cell *entity.Cell
- prop *props.RichText
func (*RichTextProvider_Expecter) AddTextAt ¶
func (_e *RichTextProvider_Expecter) AddTextAt(x interface{}, y interface{}, text interface{}, prop interface{}) *RichTextProvider_AddTextAt_Call
AddTextAt is a helper method to define mock.On call
- x float64
- y float64
- text string
- prop *props.Text
func (*RichTextProvider_Expecter) MeasureString ¶
func (_e *RichTextProvider_Expecter) MeasureString(text interface{}, prop interface{}) *RichTextProvider_MeasureString_Call
MeasureString is a helper method to define mock.On call
- text string
- prop *props.Text
type RichTextProvider_MeasureString_Call ¶
RichTextProvider_MeasureString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MeasureString'
func (*RichTextProvider_MeasureString_Call) Return ¶
func (_c *RichTextProvider_MeasureString_Call) Return(_a0 float64) *RichTextProvider_MeasureString_Call
func (*RichTextProvider_MeasureString_Call) Run ¶
func (_c *RichTextProvider_MeasureString_Call) Run(run func(text string, prop *props.Text)) *RichTextProvider_MeasureString_Call
func (*RichTextProvider_MeasureString_Call) RunAndReturn ¶
func (_c *RichTextProvider_MeasureString_Call) RunAndReturn(run func(string, *props.Text) float64) *RichTextProvider_MeasureString_Call
type Row ¶
Row is an autogenerated mock type for the Row type
func NewRow ¶
NewRow creates a new instance of Row. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Row) EXPECT ¶
func (_m *Row) EXPECT() *Row_Expecter
func (*Row) GetColumns ¶
GetColumns provides a mock function with no fields
func (*Row) GetStructure ¶
GetStructure provides a mock function with no fields
type Row_Add_Call ¶
Row_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*Row_Add_Call) Return ¶
func (_c *Row_Add_Call) Return(_a0 core.Row) *Row_Add_Call
func (*Row_Add_Call) Run ¶
func (_c *Row_Add_Call) Run(run func(cols ...core.Col)) *Row_Add_Call
func (*Row_Add_Call) RunAndReturn ¶
func (_c *Row_Add_Call) RunAndReturn(run func(...core.Col) core.Row) *Row_Add_Call
type Row_Expecter ¶
type Row_Expecter struct {
// contains filtered or unexported fields
}
func (*Row_Expecter) Add ¶
func (_e *Row_Expecter) Add(cols ...interface{}) *Row_Add_Call
Add is a helper method to define mock.On call
- cols ...core.Col
func (*Row_Expecter) GetColumns ¶
func (_e *Row_Expecter) GetColumns() *Row_GetColumns_Call
GetColumns is a helper method to define mock.On call
func (*Row_Expecter) GetHeight ¶
func (_e *Row_Expecter) GetHeight(provider interface{}, cell interface{}) *Row_GetHeight_Call
GetHeight is a helper method to define mock.On call
- provider core.Provider
- cell *entity.Cell
func (*Row_Expecter) GetStructure ¶
func (_e *Row_Expecter) GetStructure() *Row_GetStructure_Call
GetStructure is a helper method to define mock.On call
func (*Row_Expecter) Render ¶
func (_e *Row_Expecter) Render(provider interface{}, cell interface{}) *Row_Render_Call
Render is a helper method to define mock.On call
- provider core.Provider
- cell entity.Cell
func (*Row_Expecter) SetConfig ¶
func (_e *Row_Expecter) SetConfig(config interface{}) *Row_SetConfig_Call
SetConfig is a helper method to define mock.On call
- config *entity.Config
func (*Row_Expecter) WithStyle ¶
func (_e *Row_Expecter) WithStyle(style interface{}) *Row_WithStyle_Call
WithStyle is a helper method to define mock.On call
- style *props.Cell
type Row_GetColumns_Call ¶
Row_GetColumns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetColumns'
func (*Row_GetColumns_Call) Return ¶
func (_c *Row_GetColumns_Call) Return(_a0 []core.Col) *Row_GetColumns_Call
func (*Row_GetColumns_Call) Run ¶
func (_c *Row_GetColumns_Call) Run(run func()) *Row_GetColumns_Call
func (*Row_GetColumns_Call) RunAndReturn ¶
func (_c *Row_GetColumns_Call) RunAndReturn(run func() []core.Col) *Row_GetColumns_Call
type Row_GetHeight_Call ¶
Row_GetHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHeight'
func (*Row_GetHeight_Call) Return ¶
func (_c *Row_GetHeight_Call) Return(_a0 float64) *Row_GetHeight_Call
func (*Row_GetHeight_Call) Run ¶
func (_c *Row_GetHeight_Call) Run(run func(provider core.Provider, cell *entity.Cell)) *Row_GetHeight_Call
func (*Row_GetHeight_Call) RunAndReturn ¶
func (_c *Row_GetHeight_Call) RunAndReturn(run func(core.Provider, *entity.Cell) float64) *Row_GetHeight_Call
type Row_GetStructure_Call ¶
Row_GetStructure_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStructure'
func (*Row_GetStructure_Call) Return ¶
func (_c *Row_GetStructure_Call) Return(_a0 *node.Node[core.Structure]) *Row_GetStructure_Call
func (*Row_GetStructure_Call) Run ¶
func (_c *Row_GetStructure_Call) Run(run func()) *Row_GetStructure_Call
func (*Row_GetStructure_Call) RunAndReturn ¶
func (_c *Row_GetStructure_Call) RunAndReturn(run func() *node.Node[core.Structure]) *Row_GetStructure_Call
type Row_Render_Call ¶
Row_Render_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Render'
func (*Row_Render_Call) Return ¶
func (_c *Row_Render_Call) Return() *Row_Render_Call
func (*Row_Render_Call) Run ¶
func (_c *Row_Render_Call) Run(run func(provider core.Provider, cell entity.Cell)) *Row_Render_Call
func (*Row_Render_Call) RunAndReturn ¶
func (_c *Row_Render_Call) RunAndReturn(run func(core.Provider, entity.Cell)) *Row_Render_Call
type Row_SetConfig_Call ¶
Row_SetConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetConfig'
func (*Row_SetConfig_Call) Return ¶
func (_c *Row_SetConfig_Call) Return() *Row_SetConfig_Call
func (*Row_SetConfig_Call) Run ¶
func (_c *Row_SetConfig_Call) Run(run func(config *entity.Config)) *Row_SetConfig_Call
func (*Row_SetConfig_Call) RunAndReturn ¶
func (_c *Row_SetConfig_Call) RunAndReturn(run func(*entity.Config)) *Row_SetConfig_Call
type Row_WithStyle_Call ¶
Row_WithStyle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithStyle'
func (*Row_WithStyle_Call) Return ¶
func (_c *Row_WithStyle_Call) Return(_a0 core.Row) *Row_WithStyle_Call
func (*Row_WithStyle_Call) Run ¶
func (_c *Row_WithStyle_Call) Run(run func(style *props.Cell)) *Row_WithStyle_Call
func (*Row_WithStyle_Call) RunAndReturn ¶
func (_c *Row_WithStyle_Call) RunAndReturn(run func(*props.Cell) core.Row) *Row_WithStyle_Call
type Text ¶
Text is an autogenerated mock type for the Text type
func NewText ¶
NewText creates a new instance of Text. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Text) EXPECT ¶
func (_m *Text) EXPECT() *Text_Expecter
type Text_Add_Call ¶
Text_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*Text_Add_Call) Return ¶
func (_c *Text_Add_Call) Return() *Text_Add_Call
func (*Text_Add_Call) Run ¶
func (_c *Text_Add_Call) Run(run func(text string, cell *entity.Cell, textProp *props.Text)) *Text_Add_Call
func (*Text_Add_Call) RunAndReturn ¶
func (_c *Text_Add_Call) RunAndReturn(run func(string, *entity.Cell, *props.Text)) *Text_Add_Call
type Text_Expecter ¶
type Text_Expecter struct {
// contains filtered or unexported fields
}
func (*Text_Expecter) Add ¶
func (_e *Text_Expecter) Add(text interface{}, cell interface{}, textProp interface{}) *Text_Add_Call
Add is a helper method to define mock.On call
- text string
- cell *entity.Cell
- textProp *props.Text
func (*Text_Expecter) GetLinesQuantity ¶
func (_e *Text_Expecter) GetLinesQuantity(text interface{}, textProp interface{}, colWidth interface{}) *Text_GetLinesQuantity_Call
GetLinesQuantity is a helper method to define mock.On call
- text string
- textProp *props.Text
- colWidth float64
type Text_GetLinesQuantity_Call ¶
Text_GetLinesQuantity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLinesQuantity'
func (*Text_GetLinesQuantity_Call) Return ¶
func (_c *Text_GetLinesQuantity_Call) Return(_a0 int) *Text_GetLinesQuantity_Call
func (*Text_GetLinesQuantity_Call) Run ¶
func (_c *Text_GetLinesQuantity_Call) Run(run func(text string, textProp *props.Text, colWidth float64)) *Text_GetLinesQuantity_Call
func (*Text_GetLinesQuantity_Call) RunAndReturn ¶
func (_c *Text_GetLinesQuantity_Call) RunAndReturn(run func(string, *props.Text, float64) int) *Text_GetLinesQuantity_Call