mocks

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func NewCache

func NewCache(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Cache

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

func (_m *Cache) AddImage(value string, image *entity.Image)

AddImage provides a mock function with given fields: value, image

func (*Cache) EXPECT

func (_m *Cache) EXPECT() *Cache_Expecter

func (*Cache) GetImage

func (_m *Cache) GetImage(value string, _a1 extension.Type) (*entity.Image, error)

GetImage provides a mock function with given fields: value, _a1

func (*Cache) LoadImage

func (_m *Cache) LoadImage(value string, _a1 extension.Type) error

LoadImage provides a mock function with given fields: value, _a1

type Cache_AddImage_Call

type Cache_AddImage_Call struct {
	*mock.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 (*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

type Cache_GetImage_Call struct {
	*mock.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

type Cache_LoadImage_Call struct {
	*mock.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 (*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

type CellWriter struct {
	mock.Mock
}

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

func (_m *CellWriter) Apply(width float64, height float64, config *entity.Config, prop *props.Cell)

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

type CellWriter_Apply_Call struct {
	*mock.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 (*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

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

GetName is a helper method to define mock.On call

func (*CellWriter_Expecter) GetNext

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

type CellWriter_GetName_Call struct {
	*mock.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 (*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

type CellWriter_GetNext_Call struct {
	*mock.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 (*CellWriter_GetNext_Call) Run

func (_c *CellWriter_GetNext_Call) Run(run func()) *CellWriter_GetNext_Call

func (*CellWriter_GetNext_Call) RunAndReturn

type CellWriter_SetNext_Call

type CellWriter_SetNext_Call struct {
	*mock.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 (*CellWriter_SetNext_Call) Run

func (*CellWriter_SetNext_Call) RunAndReturn

type Checkbox

type Checkbox struct {
	mock.Mock
}

Checkbox is an autogenerated mock type for the Checkbox type

func NewCheckbox

func NewCheckbox(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Checkbox

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

func (_m *Checkbox) Add(label string, cell *entity.Cell, prop *props.Checkbox)

Add provides a mock function with given fields: label, cell, prop

func (*Checkbox) EXPECT

func (_m *Checkbox) EXPECT() *Checkbox_Expecter

type Checkbox_Add_Call

type Checkbox_Add_Call struct {
	*mock.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

type Code struct {
	mock.Mock
}

Code is an autogenerated mock type for the Code type

func NewCode

func NewCode(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Code

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

func (_m *Code) GenBar(code string, cell *entity.Cell, prop *props.Barcode) (*entity.Image, error)

GenBar provides a mock function with given fields: code, cell, prop

func (*Code) GenDataMatrix

func (_m *Code) GenDataMatrix(code string) (*entity.Image, error)

GenDataMatrix provides a mock function with given fields: code

func (*Code) GenQr

func (_m *Code) GenQr(code string) (*entity.Image, error)

GenQr 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

type Code_GenBar_Call struct {
	*mock.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

type Code_GenDataMatrix_Call struct {
	*mock.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 (*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

type Code_GenQr_Call struct {
	*mock.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

type Col struct {
	mock.Mock
}

Col is an autogenerated mock type for the Col type

func NewCol

func NewCol(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Col

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

func (_m *Col) Add(components ...core.Component) core.Col

Add provides a mock function with given fields: components

func (*Col) EXPECT

func (_m *Col) EXPECT() *Col_Expecter

func (*Col) GetHeight

func (_m *Col) GetHeight(provider core.Provider, cell *entity.Cell) float64

GetHeight provides a mock function with given fields: provider, cell

func (*Col) GetSize

func (_m *Col) GetSize() int

GetSize provides a mock function with no fields

func (*Col) GetStructure

func (_m *Col) GetStructure() *node.Node[core.Structure]

GetStructure provides a mock function with no fields

func (*Col) Render

func (_m *Col) Render(provider core.Provider, cell entity.Cell, createCell bool)

Render provides a mock function with given fields: provider, cell, createCell

func (*Col) SetConfig

func (_m *Col) SetConfig(config *entity.Config)

SetConfig provides a mock function with given fields: config

func (*Col) WithStyle

func (_m *Col) WithStyle(style *props.Cell) core.Col

WithStyle provides a mock function with given fields: style

type Col_Add_Call

type Col_Add_Call struct {
	*mock.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

type Col_GetHeight_Call struct {
	*mock.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 (*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

type Col_GetSize_Call struct {
	*mock.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

type Col_GetStructure_Call struct {
	*mock.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 (*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

type Col_Render_Call struct {
	*mock.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

type Col_SetConfig_Call struct {
	*mock.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

type Col_WithStyle_Call struct {
	*mock.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

type Component struct {
	mock.Mock
}

Component is an autogenerated mock type for the Component type

func NewComponent

func NewComponent(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Component

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

func (_m *Component) GetHeight(provider core.Provider, cell *entity.Cell) float64

GetHeight provides a mock function with given fields: provider, cell

func (*Component) GetStructure

func (_m *Component) GetStructure() *node.Node[core.Structure]

GetStructure provides a mock function with no fields

func (*Component) Render

func (_m *Component) Render(provider core.Provider, cell *entity.Cell)

Render provides a mock function with given fields: provider, cell

func (*Component) SetConfig

func (_m *Component) SetConfig(config *entity.Config)

SetConfig provides a mock function with given fields: config

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

type Component_GetHeight_Call struct {
	*mock.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 (*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

type Component_GetStructure_Call

type Component_GetStructure_Call struct {
	*mock.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 (*Component_GetStructure_Call) Run

func (*Component_GetStructure_Call) RunAndReturn

type Component_Render_Call

type Component_Render_Call struct {
	*mock.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 (*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

type Component_SetConfig_Call struct {
	*mock.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 (*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

type Document struct {
	mock.Mock
}

Document is an autogenerated mock type for the Document type

func NewDocument

func NewDocument(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Document

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

func (*Document) GetBase64

func (_m *Document) GetBase64() string

GetBase64 provides a mock function with no fields

func (*Document) GetBytes

func (_m *Document) GetBytes() []byte

GetBytes provides a mock function with no fields

func (*Document) GetReport

func (_m *Document) GetReport() *metrics.Report

GetReport provides a mock function with no fields

func (*Document) Merge

func (_m *Document) Merge(ctx context.Context, bytes []byte) error

Merge provides a mock function with given fields: ctx, bytes

func (*Document) Save

func (_m *Document) Save(file string) error

Save provides a mock function with given fields: file

func (*Document) Write

func (_m *Document) Write(w io.Writer) (int64, error)

Write provides a mock function with given fields: w

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

type Document_GetBase64_Call struct {
	*mock.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 (*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

type Document_GetBytes_Call struct {
	*mock.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 (*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

type Document_GetReport_Call struct {
	*mock.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 (*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

type Document_Merge_Call struct {
	*mock.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 (*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

type Document_Save_Call struct {
	*mock.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

type Document_Write_Call struct {
	*mock.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

type Font struct {
	mock.Mock
}

Font is an autogenerated mock type for the Font type

func NewFont

func NewFont(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Font

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

func (*Font) GetColor

func (_m *Font) GetColor() *props.Color

GetColor provides a mock function with no fields

func (*Font) GetFamily

func (_m *Font) GetFamily() string

GetFamily provides a mock function with no fields

func (*Font) GetFont

func (_m *Font) GetFont() (string, fontstyle.Type, float64)

GetFont provides a mock function with no fields

func (*Font) GetHeight

func (_m *Font) GetHeight(family string, style fontstyle.Type, size float64) float64

GetHeight provides a mock function with given fields: family, style, size

func (*Font) GetSize

func (_m *Font) GetSize() float64

GetSize provides a mock function with no fields

func (*Font) GetStyle

func (_m *Font) GetStyle() fontstyle.Type

GetStyle provides a mock function with no fields

func (*Font) SetColor

func (_m *Font) SetColor(color *props.Color)

SetColor provides a mock function with given fields: color

func (*Font) SetFamily

func (_m *Font) SetFamily(family string)

SetFamily provides a mock function with given fields: family

func (*Font) SetFont

func (_m *Font) SetFont(family string, style fontstyle.Type, size float64)

SetFont provides a mock function with given fields: family, style, size

func (*Font) SetSize

func (_m *Font) SetSize(size float64)

SetSize provides a mock function with given fields: size

func (*Font) SetStyle

func (_m *Font) SetStyle(style fontstyle.Type)

SetStyle provides a mock function with given fields: style

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

type Font_GetColor_Call struct {
	*mock.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 (*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

type Font_GetFamily_Call struct {
	*mock.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 (*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

type Font_GetFont_Call struct {
	*mock.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

type Font_GetHeight_Call struct {
	*mock.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 (*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

type Font_GetSize_Call

type Font_GetSize_Call struct {
	*mock.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

type Font_GetStyle_Call struct {
	*mock.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 (*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

type Font_SetColor_Call struct {
	*mock.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

type Font_SetFamily_Call struct {
	*mock.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 (*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

type Font_SetFont_Call struct {
	*mock.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

type Font_SetSize_Call struct {
	*mock.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

type Font_SetStyle_Call struct {
	*mock.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

type Image struct {
	mock.Mock
}

Image is an autogenerated mock type for the Image type

func NewImage

func NewImage(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Image

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

func (_m *Image) GetImageDimensions(img *entity.Image, _a1 extension.Type) *entity.Dimensions

GetImageDimensions provides a mock function with given fields: img, _a1

type Image_Add_Call

type Image_Add_Call struct {
	*mock.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

func (*Image_Add_Call) Run

func (_c *Image_Add_Call) Run(run func(img *entity.Image, cell *entity.Cell, margins *entity.Margins, prop *props.Rect, _a4 extension.Type, flow bool)) *Image_Add_Call

func (*Image_Add_Call) RunAndReturn

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

type Image_GetImageDimensions_Call struct {
	*mock.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 (*Image_GetImageDimensions_Call) Run

func (*Image_GetImageDimensions_Call) RunAndReturn

type Line

type Line struct {
	mock.Mock
}

Line is an autogenerated mock type for the Line type

func NewLine

func NewLine(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Line

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

func (_m *Line) Add(cell *entity.Cell, prop *props.Line)

Add provides a mock function with given fields: cell, prop

func (*Line) EXPECT

func (_m *Line) EXPECT() *Line_Expecter

type Line_Add_Call

type Line_Add_Call struct {
	*mock.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

type Math struct {
	mock.Mock
}

Math is an autogenerated mock type for the Math type

func NewMath

func NewMath(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Math

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

type Math_GetInnerCenterCell_Call struct {
	*mock.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 (*Math_GetInnerCenterCell_Call) Run

func (*Math_GetInnerCenterCell_Call) RunAndReturn

type Math_Resize_Call

type Math_Resize_Call struct {
	*mock.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 (*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

type Paper

type Paper struct {
	mock.Mock
}

Paper is an autogenerated mock type for the Paper type

func NewPaper

func NewPaper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Paper

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

func (_m *Paper) AddAutoRow(cols ...core.Col) core.Row

AddAutoRow provides a mock function with given fields: cols

func (*Paper) AddHTML

func (_m *Paper) AddHTML(ctx context.Context, htmlStr string) error

AddHTML provides a mock function with given fields: ctx, htmlStr

func (*Paper) AddPages

func (_m *Paper) AddPages(pages ...core.Page)

AddPages provides a mock function with given fields: pages

func (*Paper) AddRow

func (_m *Paper) AddRow(rowHeight float64, cols ...core.Col) core.Row

AddRow provides a mock function with given fields: rowHeight, cols

func (*Paper) AddRows

func (_m *Paper) AddRows(rows ...core.Row)

AddRows provides a mock function with given fields: rows

func (*Paper) EXPECT

func (_m *Paper) EXPECT() *Paper_Expecter

func (*Paper) FitInCurrentPage

func (_m *Paper) FitInCurrentPage(heightNewLine float64) bool

FitInCurrentPage provides a mock function with given fields: heightNewLine

func (*Paper) Generate

func (_m *Paper) Generate(ctx context.Context) (*core.Pdf, error)

Generate provides a mock function with given fields: ctx

func (*Paper) GetCurrentConfig

func (_m *Paper) GetCurrentConfig() *entity.Config

GetCurrentConfig provides a mock function with no fields

func (*Paper) GetStructure

func (_m *Paper) GetStructure() *node.Node[core.Structure]

GetStructure provides a mock function with no fields

func (*Paper) RegisterFooter

func (_m *Paper) RegisterFooter(rows ...core.Row) error

RegisterFooter provides a mock function with given fields: rows

func (*Paper) RegisterHeader

func (_m *Paper) RegisterHeader(rows ...core.Row) error

RegisterHeader provides a mock function with given fields: rows

type Paper_AddAutoRow_Call

type Paper_AddAutoRow_Call struct {
	*mock.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 (*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

type Paper_AddHTML_Call struct {
	*mock.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

type Paper_AddPages_Call struct {
	*mock.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 (*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

type Paper_AddRow_Call struct {
	*mock.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

type Paper_AddRows_Call struct {
	*mock.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

type Paper_FitInCurrentPage_Call struct {
	*mock.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 (*Paper_FitInCurrentPage_Call) Run

func (_c *Paper_FitInCurrentPage_Call) Run(run func(heightNewLine float64)) *Paper_FitInCurrentPage_Call

func (*Paper_FitInCurrentPage_Call) RunAndReturn

type Paper_Generate_Call

type Paper_Generate_Call struct {
	*mock.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

type Paper_GetCurrentConfig_Call struct {
	*mock.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 (*Paper_GetCurrentConfig_Call) Run

func (*Paper_GetCurrentConfig_Call) RunAndReturn

type Paper_GetStructure_Call

type Paper_GetStructure_Call struct {
	*mock.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 (*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 {
	*mock.Call
}

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 (*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

type Paper_RegisterHeader_Call struct {
	*mock.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 (*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

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Provider

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

func (_m *Provider) AddBarCode(code string, cell *entity.Cell, prop *props.Barcode)

AddBarCode provides a mock function with given fields: code, cell, prop

func (*Provider) AddCheckbox

func (_m *Provider) AddCheckbox(label string, cell *entity.Cell, prop *props.Checkbox)

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

func (_m *Provider) AddImageFromFile(value string, cell *entity.Cell, prop *props.Rect)

AddImageFromFile provides a mock function with given fields: value, cell, prop

func (*Provider) AddLine

func (_m *Provider) AddLine(cell *entity.Cell, prop *props.Line)

AddLine provides a mock function with given fields: cell, prop

func (*Provider) AddMatrixCode

func (_m *Provider) AddMatrixCode(code string, cell *entity.Cell, prop *props.Rect)

AddMatrixCode provides a mock function with given fields: code, cell, prop

func (*Provider) AddQrCode

func (_m *Provider) AddQrCode(code string, cell *entity.Cell, rect *props.Rect)

AddQrCode provides a mock function with given fields: code, cell, rect

func (*Provider) AddText

func (_m *Provider) AddText(text string, cell *entity.Cell, prop *props.Text)

AddText provides a mock function with given fields: text, 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) CreateRow

func (_m *Provider) CreateRow(height float64)

CreateRow provides a mock function with given fields: height

func (*Provider) EXPECT

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) GenerateBytes

func (_m *Provider) GenerateBytes() ([]byte, error)

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

func (_m *Provider) GetFontHeight(prop *props.Font) float64

GetFontHeight provides a mock function with given fields: prop

func (*Provider) GetLinesQuantity

func (_m *Provider) GetLinesQuantity(text string, textProp *props.Text, colWidth float64) int

GetLinesQuantity provides a mock function with given fields: text, textProp, colWidth

func (*Provider) SetCompression

func (_m *Provider) SetCompression(compression bool)

SetCompression provides a mock function with given fields: compression

func (*Provider) SetMetadata

func (_m *Provider) SetMetadata(metadata *entity.Metadata)

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

type Provider_AddBackgroundImageFromBytes_Call struct {
	*mock.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 (*Provider_AddBackgroundImageFromBytes_Call) Run

func (*Provider_AddBackgroundImageFromBytes_Call) RunAndReturn

type Provider_AddBarCode_Call

type Provider_AddBarCode_Call struct {
	*mock.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 (*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

type Provider_AddCheckbox_Call

type Provider_AddCheckbox_Call struct {
	*mock.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 (*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

type Provider_AddImageFromBytes_Call

type Provider_AddImageFromBytes_Call struct {
	*mock.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 (*Provider_AddImageFromBytes_Call) Run

func (*Provider_AddImageFromBytes_Call) RunAndReturn

type Provider_AddImageFromFile_Call

type Provider_AddImageFromFile_Call struct {
	*mock.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 (*Provider_AddImageFromFile_Call) Run

func (*Provider_AddImageFromFile_Call) RunAndReturn

type Provider_AddLine_Call

type Provider_AddLine_Call struct {
	*mock.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 (*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

type Provider_AddMatrixCode_Call struct {
	*mock.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 (*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

type Provider_AddQrCode_Call

type Provider_AddQrCode_Call struct {
	*mock.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 (*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

type Provider_AddText_Call struct {
	*mock.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 (*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

type Provider_CreateCol_Call struct {
	*mock.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 (*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

type Provider_CreateRow_Call

type Provider_CreateRow_Call struct {
	*mock.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 (*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

type Provider_GenerateBytes_Call struct {
	*mock.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 (*Provider_GenerateBytes_Call) Run

func (*Provider_GenerateBytes_Call) RunAndReturn

func (_c *Provider_GenerateBytes_Call) RunAndReturn(run func() ([]byte, error)) *Provider_GenerateBytes_Call

type Provider_GetDimensionsByImageByte_Call

type Provider_GetDimensionsByImageByte_Call struct {
	*mock.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 (*Provider_GetDimensionsByImageByte_Call) Run

func (*Provider_GetDimensionsByImageByte_Call) RunAndReturn

type Provider_GetDimensionsByImage_Call

type Provider_GetDimensionsByImage_Call struct {
	*mock.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 (*Provider_GetDimensionsByImage_Call) Run

func (*Provider_GetDimensionsByImage_Call) RunAndReturn

type Provider_GetDimensionsByMatrixCode_Call

type Provider_GetDimensionsByMatrixCode_Call struct {
	*mock.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 (*Provider_GetDimensionsByMatrixCode_Call) Run

func (*Provider_GetDimensionsByMatrixCode_Call) RunAndReturn

type Provider_GetDimensionsByQrCode_Call

type Provider_GetDimensionsByQrCode_Call struct {
	*mock.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 (*Provider_GetDimensionsByQrCode_Call) Run

func (*Provider_GetDimensionsByQrCode_Call) RunAndReturn

type Provider_GetFontHeight_Call

type Provider_GetFontHeight_Call struct {
	*mock.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 (*Provider_GetFontHeight_Call) Run

func (*Provider_GetFontHeight_Call) RunAndReturn

type Provider_GetLinesQuantity_Call

type Provider_GetLinesQuantity_Call struct {
	*mock.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 (*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

type Provider_SetCompression_Call

type Provider_SetCompression_Call struct {
	*mock.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 (*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

type Provider_SetMetadata_Call struct {
	*mock.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 (*Provider_SetMetadata_Call) Run

func (*Provider_SetMetadata_Call) RunAndReturn

type Provider_SetProtection_Call

type Provider_SetProtection_Call struct {
	*mock.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 (*Provider_SetProtection_Call) Run

func (*Provider_SetProtection_Call) RunAndReturn

type RichTextProvider

type RichTextProvider struct {
	mock.Mock
}

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

func (_m *RichTextProvider) AddTextAt(x float64, y float64, text string, prop *props.Text)

AddTextAt provides a mock function with given fields: x, y, text, prop

func (*RichTextProvider) EXPECT

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

type RichTextProvider_AddRichText_Call struct {
	*mock.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 (*RichTextProvider_AddRichText_Call) Run

func (*RichTextProvider_AddRichText_Call) RunAndReturn

type RichTextProvider_AddTextAt_Call

type RichTextProvider_AddTextAt_Call struct {
	*mock.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 (*RichTextProvider_AddTextAt_Call) Run

func (*RichTextProvider_AddTextAt_Call) RunAndReturn

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

type RichTextProvider_MeasureString_Call struct {
	*mock.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 (*RichTextProvider_MeasureString_Call) Run

func (*RichTextProvider_MeasureString_Call) RunAndReturn

type Row

type Row struct {
	mock.Mock
}

Row is an autogenerated mock type for the Row type

func NewRow

func NewRow(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Row

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

func (_m *Row) Add(cols ...core.Col) core.Row

Add provides a mock function with given fields: cols

func (*Row) EXPECT

func (_m *Row) EXPECT() *Row_Expecter

func (*Row) GetColumns

func (_m *Row) GetColumns() []core.Col

GetColumns provides a mock function with no fields

func (*Row) GetHeight

func (_m *Row) GetHeight(provider core.Provider, cell *entity.Cell) float64

GetHeight provides a mock function with given fields: provider, cell

func (*Row) GetStructure

func (_m *Row) GetStructure() *node.Node[core.Structure]

GetStructure provides a mock function with no fields

func (*Row) Render

func (_m *Row) Render(provider core.Provider, cell entity.Cell)

Render provides a mock function with given fields: provider, cell

func (*Row) SetConfig

func (_m *Row) SetConfig(config *entity.Config)

SetConfig provides a mock function with given fields: config

func (*Row) WithStyle

func (_m *Row) WithStyle(style *props.Cell) core.Row

WithStyle provides a mock function with given fields: style

type Row_Add_Call

type Row_Add_Call struct {
	*mock.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

type Row_GetColumns_Call struct {
	*mock.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

type Row_GetHeight_Call struct {
	*mock.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 (*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

type Row_GetStructure_Call struct {
	*mock.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 (*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

type Row_Render_Call struct {
	*mock.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

type Row_SetConfig_Call struct {
	*mock.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

type Row_WithStyle_Call struct {
	*mock.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

type Text struct {
	mock.Mock
}

Text is an autogenerated mock type for the Text type

func NewText

func NewText(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Text

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

func (_m *Text) Add(text string, cell *entity.Cell, textProp *props.Text)

Add provides a mock function with given fields: text, cell, textProp

func (*Text) EXPECT

func (_m *Text) EXPECT() *Text_Expecter

func (*Text) GetLinesQuantity

func (_m *Text) GetLinesQuantity(text string, textProp *props.Text, colWidth float64) int

GetLinesQuantity provides a mock function with given fields: text, textProp, colWidth

type Text_Add_Call

type Text_Add_Call struct {
	*mock.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

type Text_GetLinesQuantity_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

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