mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 9 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 Code

type Code struct {
	mock.Mock
}

Code is an autogenerated mock type for the Code type

func (*Code) AddBar

func (_m *Code) AddBar(code string, cell internal.Cell, prop props.Barcode) error

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

func (*Code) AddDataMatrix added in v0.33.0

func (_m *Code) AddDataMatrix(code string, cell internal.Cell, prop props.Rect)

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

func (*Code) AddQr

func (_m *Code) AddQr(code string, cell internal.Cell, prop props.Rect)

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

type Font

type Font struct {
	mock.Mock
}

Font is an autogenerated mock type for the Font type

func (*Font) GetColor added in v0.29.0

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

GetColor provides a mock function with given fields:

func (*Font) GetFamily

func (_m *Font) GetFamily() string

GetFamily provides a mock function with given fields:

func (*Font) GetFont

func (_m *Font) GetFont() (string, consts.Style, float64)

GetFont provides a mock function with given fields:

func (*Font) GetScaleFactor added in v0.21.2

func (_m *Font) GetScaleFactor() float64

GetScaleFactor provides a mock function with given fields:

func (*Font) GetSize

func (_m *Font) GetSize() float64

GetSize provides a mock function with given fields:

func (*Font) GetStyle

func (_m *Font) GetStyle() consts.Style

GetStyle provides a mock function with given fields:

func (*Font) SetColor added in v0.29.0

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

SetColor provides a mock function with given fields: _a0

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 consts.Style, 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 consts.Style)

SetStyle provides a mock function with given fields: style

type Fpdf added in v0.30.0

type Fpdf struct {
	mock.Mock
}

Fpdf is an autogenerated mock type for the Fpdf type

func (*Fpdf) AddFont added in v0.30.0

func (_m *Fpdf) AddFont(familyStr string, styleStr string, fileStr string)

AddFont provides a mock function with given fields: familyStr, styleStr, fileStr

func (*Fpdf) AddFontFromBytes added in v0.30.0

func (_m *Fpdf) AddFontFromBytes(familyStr string, styleStr string, jsonFileBytes []byte, zFileBytes []byte)

AddFontFromBytes provides a mock function with given fields: familyStr, styleStr, jsonFileBytes, zFileBytes

func (*Fpdf) AddFontFromReader added in v0.30.0

func (_m *Fpdf) AddFontFromReader(familyStr string, styleStr string, r io.Reader)

AddFontFromReader provides a mock function with given fields: familyStr, styleStr, r

func (*Fpdf) AddLayer added in v0.30.0

func (_m *Fpdf) AddLayer(name string, visible bool) int

AddLayer provides a mock function with given fields: name, visible

func (_m *Fpdf) AddLink() int

AddLink provides a mock function with given fields:

func (*Fpdf) AddPage added in v0.30.0

func (_m *Fpdf) AddPage()

AddPage provides a mock function with given fields:

func (*Fpdf) AddPageFormat added in v0.30.0

func (_m *Fpdf) AddPageFormat(orientationStr string, size gofpdf.SizeType)

AddPageFormat provides a mock function with given fields: orientationStr, size

func (*Fpdf) AddSpotColor added in v0.30.0

func (_m *Fpdf) AddSpotColor(nameStr string, c byte, m byte, y byte, k byte)

AddSpotColor provides a mock function with given fields: nameStr, c, m, y, k

func (*Fpdf) AddUTF8Font added in v0.30.0

func (_m *Fpdf) AddUTF8Font(familyStr string, styleStr string, fileStr string)

AddUTF8Font provides a mock function with given fields: familyStr, styleStr, fileStr

func (*Fpdf) AddUTF8FontFromBytes added in v0.43.0

func (_m *Fpdf) AddUTF8FontFromBytes(familyStr, styleStr string, utf8Bytes []byte)

AddUTF8FontFromBytes provides a mock function with given fields: familyStr, styleStr, utf8Bytes

func (*Fpdf) AliasNbPages added in v0.30.0

func (_m *Fpdf) AliasNbPages(aliasStr string)

AliasNbPages provides a mock function with given fields: aliasStr

func (*Fpdf) Arc added in v0.30.0

func (_m *Fpdf) Arc(x float64, y float64, rx float64, ry float64, degRotate float64, degStart float64, degEnd float64, styleStr string)

Arc provides a mock function with given fields: x, y, rx, ry, degRotate, degStart, degEnd, styleStr

func (*Fpdf) ArcTo added in v0.30.0

func (_m *Fpdf) ArcTo(x float64, y float64, rx float64, ry float64, degRotate float64, degStart float64, degEnd float64)

ArcTo provides a mock function with given fields: x, y, rx, ry, degRotate, degStart, degEnd

func (*Fpdf) BeginLayer added in v0.30.0

func (_m *Fpdf) BeginLayer(id int)

BeginLayer provides a mock function with given fields: id

func (*Fpdf) Beziergon added in v0.30.0

func (_m *Fpdf) Beziergon(points []gofpdf.PointType, styleStr string)

Beziergon provides a mock function with given fields: points, styleStr

func (*Fpdf) Bookmark added in v0.30.0

func (_m *Fpdf) Bookmark(txtStr string, level int, y float64)

Bookmark provides a mock function with given fields: txtStr, level, y

func (*Fpdf) Cell added in v0.30.0

func (_m *Fpdf) Cell(w float64, h float64, txtStr string)

Cell provides a mock function with given fields: w, h, txtStr

func (*Fpdf) CellFormat added in v0.30.0

func (_m *Fpdf) CellFormat(w float64, h float64, txtStr string, borderStr string, ln int, alignStr string, fill bool, link int, linkStr string)

CellFormat provides a mock function with given fields: w, h, txtStr, borderStr, ln, alignStr, fill, link, linkStr

func (*Fpdf) Cellf added in v0.30.0

func (_m *Fpdf) Cellf(w float64, h float64, fmtStr string, args ...interface{})

Cellf provides a mock function with given fields: w, h, fmtStr, args

func (*Fpdf) Circle added in v0.30.0

func (_m *Fpdf) Circle(x float64, y float64, r float64, styleStr string)

Circle provides a mock function with given fields: x, y, r, styleStr

func (*Fpdf) ClearError added in v0.30.0

func (_m *Fpdf) ClearError()

ClearError provides a mock function with given fields:

func (*Fpdf) ClipCircle added in v0.30.0

func (_m *Fpdf) ClipCircle(x float64, y float64, r float64, outline bool)

ClipCircle provides a mock function with given fields: x, y, r, outline

func (*Fpdf) ClipEllipse added in v0.30.0

func (_m *Fpdf) ClipEllipse(x float64, y float64, rx float64, ry float64, outline bool)

ClipEllipse provides a mock function with given fields: x, y, rx, ry, outline

func (*Fpdf) ClipEnd added in v0.30.0

func (_m *Fpdf) ClipEnd()

ClipEnd provides a mock function with given fields:

func (*Fpdf) ClipPolygon added in v0.30.0

func (_m *Fpdf) ClipPolygon(points []gofpdf.PointType, outline bool)

ClipPolygon provides a mock function with given fields: points, outline

func (*Fpdf) ClipRect added in v0.30.0

func (_m *Fpdf) ClipRect(x float64, y float64, w float64, h float64, outline bool)

ClipRect provides a mock function with given fields: x, y, w, h, outline

func (*Fpdf) ClipRoundedRect added in v0.30.0

func (_m *Fpdf) ClipRoundedRect(x float64, y float64, w float64, h float64, r float64, outline bool)

ClipRoundedRect provides a mock function with given fields: x, y, w, h, r, outline

func (*Fpdf) ClipText added in v0.30.0

func (_m *Fpdf) ClipText(x float64, y float64, txtStr string, outline bool)

ClipText provides a mock function with given fields: x, y, txtStr, outline

func (*Fpdf) Close added in v0.30.0

func (_m *Fpdf) Close()

Close provides a mock function with given fields:

func (*Fpdf) ClosePath added in v0.30.0

func (_m *Fpdf) ClosePath()

ClosePath provides a mock function with given fields:

func (*Fpdf) CreateTemplate added in v0.30.0

func (_m *Fpdf) CreateTemplate(fn func(*gofpdf.Tpl)) gofpdf.Template

CreateTemplate provides a mock function with given fields: fn

func (*Fpdf) CreateTemplateCustom added in v0.30.0

func (_m *Fpdf) CreateTemplateCustom(corner gofpdf.PointType, size gofpdf.SizeType, fn func(*gofpdf.Tpl)) gofpdf.Template

CreateTemplateCustom provides a mock function with given fields: corner, size, fn

func (*Fpdf) Curve added in v0.30.0

func (_m *Fpdf) Curve(x0 float64, y0 float64, cx float64, cy float64, x1 float64, y1 float64, styleStr string)

Curve provides a mock function with given fields: x0, y0, cx, cy, x1, y1, styleStr

func (*Fpdf) CurveBezierCubic added in v0.30.0

func (_m *Fpdf) CurveBezierCubic(x0 float64, y0 float64, cx0 float64, cy0 float64, cx1 float64, cy1 float64, x1 float64, y1 float64, styleStr string)

CurveBezierCubic provides a mock function with given fields: x0, y0, cx0, cy0, cx1, cy1, x1, y1, styleStr

func (*Fpdf) CurveBezierCubicTo added in v0.30.0

func (_m *Fpdf) CurveBezierCubicTo(cx0 float64, cy0 float64, cx1 float64, cy1 float64, x float64, y float64)

CurveBezierCubicTo provides a mock function with given fields: cx0, cy0, cx1, cy1, x, y

func (*Fpdf) CurveCubic added in v0.30.0

func (_m *Fpdf) CurveCubic(x0 float64, y0 float64, cx0 float64, cy0 float64, x1 float64, y1 float64, cx1 float64, cy1 float64, styleStr string)

CurveCubic provides a mock function with given fields: x0, y0, cx0, cy0, x1, y1, cx1, cy1, styleStr

func (*Fpdf) CurveTo added in v0.30.0

func (_m *Fpdf) CurveTo(cx float64, cy float64, x float64, y float64)

CurveTo provides a mock function with given fields: cx, cy, x, y

func (*Fpdf) DrawPath added in v0.30.0

func (_m *Fpdf) DrawPath(styleStr string)

DrawPath provides a mock function with given fields: styleStr

func (*Fpdf) Ellipse added in v0.30.0

func (_m *Fpdf) Ellipse(x float64, y float64, rx float64, ry float64, degRotate float64, styleStr string)

Ellipse provides a mock function with given fields: x, y, rx, ry, degRotate, styleStr

func (*Fpdf) EndLayer added in v0.30.0

func (_m *Fpdf) EndLayer()

EndLayer provides a mock function with given fields:

func (*Fpdf) Err added in v0.30.0

func (_m *Fpdf) Err() bool

Err provides a mock function with given fields:

func (*Fpdf) Error added in v0.30.0

func (_m *Fpdf) Error() error

Error provides a mock function with given fields:

func (*Fpdf) GetAlpha added in v0.30.0

func (_m *Fpdf) GetAlpha() (float64, string)

GetAlpha provides a mock function with given fields:

func (*Fpdf) GetAutoPageBreak added in v0.30.0

func (_m *Fpdf) GetAutoPageBreak() (bool, float64)

GetAutoPageBreak provides a mock function with given fields:

func (*Fpdf) GetCellMargin added in v0.30.0

func (_m *Fpdf) GetCellMargin() float64

GetCellMargin provides a mock function with given fields:

func (*Fpdf) GetConversionRatio added in v0.30.0

func (_m *Fpdf) GetConversionRatio() float64

GetConversionRatio provides a mock function with given fields:

func (*Fpdf) GetDrawColor added in v0.30.0

func (_m *Fpdf) GetDrawColor() (int, int, int)

GetDrawColor provides a mock function with given fields:

func (*Fpdf) GetDrawSpotColor added in v0.30.0

func (_m *Fpdf) GetDrawSpotColor() (string, byte, byte, byte, byte)

GetDrawSpotColor provides a mock function with given fields:

func (*Fpdf) GetFillColor added in v0.30.0

func (_m *Fpdf) GetFillColor() (int, int, int)

GetFillColor provides a mock function with given fields:

func (*Fpdf) GetFillSpotColor added in v0.30.0

func (_m *Fpdf) GetFillSpotColor() (string, byte, byte, byte, byte)

GetFillSpotColor provides a mock function with given fields:

func (*Fpdf) GetFontDesc added in v0.30.0

func (_m *Fpdf) GetFontDesc(familyStr string, styleStr string) gofpdf.FontDescType

GetFontDesc provides a mock function with given fields: familyStr, styleStr

func (*Fpdf) GetFontSize added in v0.30.0

func (_m *Fpdf) GetFontSize() (float64, float64)

GetFontSize provides a mock function with given fields:

func (*Fpdf) GetImageInfo added in v0.30.0

func (_m *Fpdf) GetImageInfo(imageStr string) *gofpdf.ImageInfoType

GetImageInfo provides a mock function with given fields: imageStr

func (*Fpdf) GetLineWidth added in v0.30.0

func (_m *Fpdf) GetLineWidth() float64

GetLineWidth provides a mock function with given fields:

func (*Fpdf) GetMargins added in v0.30.0

func (_m *Fpdf) GetMargins() (float64, float64, float64, float64)

GetMargins provides a mock function with given fields:

func (*Fpdf) GetPageSize added in v0.30.0

func (_m *Fpdf) GetPageSize() (float64, float64)

GetPageSize provides a mock function with given fields:

func (*Fpdf) GetPageSizeStr added in v0.30.0

func (_m *Fpdf) GetPageSizeStr(sizeStr string) gofpdf.SizeType

GetPageSizeStr provides a mock function with given fields: sizeStr

func (*Fpdf) GetStringWidth added in v0.30.0

func (_m *Fpdf) GetStringWidth(s string) float64

GetStringWidth provides a mock function with given fields: s

func (*Fpdf) GetTextColor added in v0.30.0

func (_m *Fpdf) GetTextColor() (int, int, int)

GetTextColor provides a mock function with given fields:

func (*Fpdf) GetTextSpotColor added in v0.30.0

func (_m *Fpdf) GetTextSpotColor() (string, byte, byte, byte, byte)

GetTextSpotColor provides a mock function with given fields:

func (*Fpdf) GetX added in v0.30.0

func (_m *Fpdf) GetX() float64

GetX provides a mock function with given fields:

func (*Fpdf) GetXY added in v0.30.0

func (_m *Fpdf) GetXY() (float64, float64)

GetXY provides a mock function with given fields:

func (*Fpdf) GetY added in v0.30.0

func (_m *Fpdf) GetY() float64

GetY provides a mock function with given fields:

func (*Fpdf) HTMLBasicNew added in v0.30.0

func (_m *Fpdf) HTMLBasicNew() gofpdf.HTMLBasicType

HTMLBasicNew provides a mock function with given fields:

func (*Fpdf) Image added in v0.30.0

func (_m *Fpdf) Image(imageNameStr string, x float64, y float64, w float64, h float64, flow bool, tp string, link int, linkStr string)

Image provides a mock function with given fields: imageNameStr, x, y, w, h, flow, tp, link, linkStr

func (*Fpdf) ImageOptions added in v0.30.0

func (_m *Fpdf) ImageOptions(imageNameStr string, x float64, y float64, w float64, h float64, flow bool, options gofpdf.ImageOptions, link int, linkStr string)

ImageOptions provides a mock function with given fields: imageNameStr, x, y, w, h, flow, options, link, linkStr

func (*Fpdf) ImageTypeFromMime added in v0.30.0

func (_m *Fpdf) ImageTypeFromMime(mimeStr string) string

ImageTypeFromMime provides a mock function with given fields: mimeStr

func (*Fpdf) Line added in v0.30.0

func (_m *Fpdf) Line(x1 float64, y1 float64, x2 float64, y2 float64)

Line provides a mock function with given fields: x1, y1, x2, y2

func (*Fpdf) LineTo added in v0.30.0

func (_m *Fpdf) LineTo(x float64, y float64)

LineTo provides a mock function with given fields: x, y

func (*Fpdf) LinearGradient added in v0.30.0

func (_m *Fpdf) LinearGradient(x float64, y float64, w float64, h float64, r1 int, g1 int, b1 int, r2 int, g2 int, b2 int, x1 float64, y1 float64, x2 float64, y2 float64)

LinearGradient provides a mock function with given fields: x, y, w, h, r1, g1, b1, r2, g2, b2, x1, y1, x2, y2

func (_m *Fpdf) Link(x float64, y float64, w float64, h float64, link int)

Link provides a mock function with given fields: x, y, w, h, link

func (*Fpdf) LinkString added in v0.30.0

func (_m *Fpdf) LinkString(x float64, y float64, w float64, h float64, linkStr string)

LinkString provides a mock function with given fields: x, y, w, h, linkStr

func (*Fpdf) Ln added in v0.30.0

func (_m *Fpdf) Ln(h float64)

Ln provides a mock function with given fields: h

func (*Fpdf) MoveTo added in v0.30.0

func (_m *Fpdf) MoveTo(x float64, y float64)

MoveTo provides a mock function with given fields: x, y

func (*Fpdf) MultiCell added in v0.30.0

func (_m *Fpdf) MultiCell(w float64, h float64, txtStr string, borderStr string, alignStr string, fill bool)

MultiCell provides a mock function with given fields: w, h, txtStr, borderStr, alignStr, fill

func (*Fpdf) Ok added in v0.30.0

func (_m *Fpdf) Ok() bool

Ok provides a mock function with given fields:

func (*Fpdf) OpenLayerPane added in v0.30.0

func (_m *Fpdf) OpenLayerPane()

OpenLayerPane provides a mock function with given fields:

func (*Fpdf) Output added in v0.30.0

func (_m *Fpdf) Output(w io.Writer) error

Output provides a mock function with given fields: w

func (*Fpdf) OutputAndClose added in v0.30.0

func (_m *Fpdf) OutputAndClose(w io.WriteCloser) error

OutputAndClose provides a mock function with given fields: w

func (*Fpdf) OutputFileAndClose added in v0.30.0

func (_m *Fpdf) OutputFileAndClose(fileStr string) error

OutputFileAndClose provides a mock function with given fields: fileStr

func (*Fpdf) PageCount added in v0.30.0

func (_m *Fpdf) PageCount() int

PageCount provides a mock function with given fields:

func (*Fpdf) PageNo added in v0.30.0

func (_m *Fpdf) PageNo() int

PageNo provides a mock function with given fields:

func (*Fpdf) PageSize added in v0.30.0

func (_m *Fpdf) PageSize(pageNum int) (float64, float64, string)

PageSize provides a mock function with given fields: pageNum

func (*Fpdf) PointConvert added in v0.30.0

func (_m *Fpdf) PointConvert(pt float64) float64

PointConvert provides a mock function with given fields: pt

func (*Fpdf) PointToUnitConvert added in v0.30.0

func (_m *Fpdf) PointToUnitConvert(pt float64) float64

PointToUnitConvert provides a mock function with given fields: pt

func (*Fpdf) Polygon added in v0.30.0

func (_m *Fpdf) Polygon(points []gofpdf.PointType, styleStr string)

Polygon provides a mock function with given fields: points, styleStr

func (*Fpdf) RadialGradient added in v0.30.0

func (_m *Fpdf) RadialGradient(x float64, y float64, w float64, h float64, r1 int, g1 int, b1 int, r2 int, g2 int, b2 int, x1 float64, y1 float64, x2 float64, y2 float64, r float64)

RadialGradient provides a mock function with given fields: x, y, w, h, r1, g1, b1, r2, g2, b2, x1, y1, x2, y2, r

func (*Fpdf) RawWriteBuf added in v0.30.0

func (_m *Fpdf) RawWriteBuf(r io.Reader)

RawWriteBuf provides a mock function with given fields: r

func (*Fpdf) RawWriteStr added in v0.30.0

func (_m *Fpdf) RawWriteStr(str string)

RawWriteStr provides a mock function with given fields: str

func (*Fpdf) Rect added in v0.30.0

func (_m *Fpdf) Rect(x float64, y float64, w float64, h float64, styleStr string)

Rect provides a mock function with given fields: x, y, w, h, styleStr

func (*Fpdf) RegisterAlias added in v0.30.0

func (_m *Fpdf) RegisterAlias(alias string, replacement string)

RegisterAlias provides a mock function with given fields: alias, replacement

func (*Fpdf) RegisterImage added in v0.30.0

func (_m *Fpdf) RegisterImage(fileStr string, tp string) *gofpdf.ImageInfoType

RegisterImage provides a mock function with given fields: fileStr, tp

func (*Fpdf) RegisterImageOptions added in v0.30.0

func (_m *Fpdf) RegisterImageOptions(fileStr string, options gofpdf.ImageOptions) *gofpdf.ImageInfoType

RegisterImageOptions provides a mock function with given fields: fileStr, options

func (*Fpdf) RegisterImageOptionsReader added in v0.30.0

func (_m *Fpdf) RegisterImageOptionsReader(imgName string, options gofpdf.ImageOptions, r io.Reader) *gofpdf.ImageInfoType

RegisterImageOptionsReader provides a mock function with given fields: imgName, options, r

func (*Fpdf) RegisterImageReader added in v0.30.0

func (_m *Fpdf) RegisterImageReader(imgName string, tp string, r io.Reader) *gofpdf.ImageInfoType

RegisterImageReader provides a mock function with given fields: imgName, tp, r

func (*Fpdf) SVGBasicWrite added in v0.30.0

func (_m *Fpdf) SVGBasicWrite(sb *gofpdf.SVGBasicType, scale float64)

SVGBasicWrite provides a mock function with given fields: sb, scale

func (*Fpdf) SetAcceptPageBreakFunc added in v0.30.0

func (_m *Fpdf) SetAcceptPageBreakFunc(fnc func() bool)

SetAcceptPageBreakFunc provides a mock function with given fields: fnc

func (*Fpdf) SetAlpha added in v0.30.0

func (_m *Fpdf) SetAlpha(alpha float64, blendModeStr string)

SetAlpha provides a mock function with given fields: alpha, blendModeStr

func (*Fpdf) SetAuthor added in v0.30.0

func (_m *Fpdf) SetAuthor(authorStr string, isUTF8 bool)

SetAuthor provides a mock function with given fields: authorStr, isUTF8

func (*Fpdf) SetAutoPageBreak added in v0.30.0

func (_m *Fpdf) SetAutoPageBreak(auto bool, margin float64)

SetAutoPageBreak provides a mock function with given fields: auto, margin

func (*Fpdf) SetCatalogSort added in v0.30.0

func (_m *Fpdf) SetCatalogSort(flag bool)

SetCatalogSort provides a mock function with given fields: flag

func (*Fpdf) SetCellMargin added in v0.30.0

func (_m *Fpdf) SetCellMargin(margin float64)

SetCellMargin provides a mock function with given fields: margin

func (*Fpdf) SetCompression added in v0.30.0

func (_m *Fpdf) SetCompression(compress bool)

SetCompression provides a mock function with given fields: compress

func (*Fpdf) SetCreationDate added in v0.30.0

func (_m *Fpdf) SetCreationDate(tm time.Time)

SetCreationDate provides a mock function with given fields: tm

func (*Fpdf) SetCreator added in v0.30.0

func (_m *Fpdf) SetCreator(creatorStr string, isUTF8 bool)

SetCreator provides a mock function with given fields: creatorStr, isUTF8

func (*Fpdf) SetDashPattern added in v0.30.0

func (_m *Fpdf) SetDashPattern(dashArray []float64, dashPhase float64)

SetDashPattern provides a mock function with given fields: dashArray, dashPhase

func (*Fpdf) SetDisplayMode added in v0.30.0

func (_m *Fpdf) SetDisplayMode(zoomStr string, layoutStr string)

SetDisplayMode provides a mock function with given fields: zoomStr, layoutStr

func (*Fpdf) SetDrawColor added in v0.30.0

func (_m *Fpdf) SetDrawColor(r int, g int, b int)

SetDrawColor provides a mock function with given fields: r, g, b

func (*Fpdf) SetDrawSpotColor added in v0.30.0

func (_m *Fpdf) SetDrawSpotColor(nameStr string, tint byte)

SetDrawSpotColor provides a mock function with given fields: nameStr, tint

func (*Fpdf) SetError added in v0.30.0

func (_m *Fpdf) SetError(err error)

SetError provides a mock function with given fields: err

func (*Fpdf) SetErrorf added in v0.30.0

func (_m *Fpdf) SetErrorf(fmtStr string, args ...interface{})

SetErrorf provides a mock function with given fields: fmtStr, args

func (*Fpdf) SetFillColor added in v0.30.0

func (_m *Fpdf) SetFillColor(r int, g int, b int)

SetFillColor provides a mock function with given fields: r, g, b

func (*Fpdf) SetFillSpotColor added in v0.30.0

func (_m *Fpdf) SetFillSpotColor(nameStr string, tint byte)

SetFillSpotColor provides a mock function with given fields: nameStr, tint

func (*Fpdf) SetFont added in v0.30.0

func (_m *Fpdf) SetFont(familyStr string, styleStr string, size float64)

SetFont provides a mock function with given fields: familyStr, styleStr, size

func (*Fpdf) SetFontLoader added in v0.30.0

func (_m *Fpdf) SetFontLoader(loader gofpdf.FontLoader)

SetFontLoader provides a mock function with given fields: loader

func (*Fpdf) SetFontLocation added in v0.30.0

func (_m *Fpdf) SetFontLocation(fontDirStr string)

SetFontLocation provides a mock function with given fields: fontDirStr

func (*Fpdf) SetFontSize added in v0.30.0

func (_m *Fpdf) SetFontSize(size float64)

SetFontSize provides a mock function with given fields: size

func (*Fpdf) SetFontStyle added in v0.30.0

func (_m *Fpdf) SetFontStyle(styleStr string)

SetFontStyle provides a mock function with given fields: styleStr

func (*Fpdf) SetFontUnitSize added in v0.30.0

func (_m *Fpdf) SetFontUnitSize(size float64)

SetFontUnitSize provides a mock function with given fields: size

func (*Fpdf) SetFooterFunc added in v0.30.0

func (_m *Fpdf) SetFooterFunc(fnc func())

SetFooterFunc provides a mock function with given fields: fnc

func (*Fpdf) SetFooterFuncLpi added in v0.30.0

func (_m *Fpdf) SetFooterFuncLpi(fnc func(bool))

SetFooterFuncLpi provides a mock function with given fields: fnc

func (*Fpdf) SetHeaderFunc added in v0.30.0

func (_m *Fpdf) SetHeaderFunc(fnc func())

SetHeaderFunc provides a mock function with given fields: fnc

func (*Fpdf) SetHeaderFuncMode added in v0.30.0

func (_m *Fpdf) SetHeaderFuncMode(fnc func(), homeMode bool)

SetHeaderFuncMode provides a mock function with given fields: fnc, homeMode

func (*Fpdf) SetHomeXY added in v0.30.0

func (_m *Fpdf) SetHomeXY()

SetHomeXY provides a mock function with given fields:

func (*Fpdf) SetJavascript added in v0.30.0

func (_m *Fpdf) SetJavascript(script string)

SetJavascript provides a mock function with given fields: script

func (*Fpdf) SetKeywords added in v0.30.0

func (_m *Fpdf) SetKeywords(keywordsStr string, isUTF8 bool)

SetKeywords provides a mock function with given fields: keywordsStr, isUTF8

func (*Fpdf) SetLeftMargin added in v0.30.0

func (_m *Fpdf) SetLeftMargin(margin float64)

SetLeftMargin provides a mock function with given fields: margin

func (*Fpdf) SetLineCapStyle added in v0.30.0

func (_m *Fpdf) SetLineCapStyle(styleStr string)

SetLineCapStyle provides a mock function with given fields: styleStr

func (*Fpdf) SetLineJoinStyle added in v0.30.0

func (_m *Fpdf) SetLineJoinStyle(styleStr string)

SetLineJoinStyle provides a mock function with given fields: styleStr

func (*Fpdf) SetLineWidth added in v0.30.0

func (_m *Fpdf) SetLineWidth(width float64)

SetLineWidth provides a mock function with given fields: width

func (_m *Fpdf) SetLink(link int, y float64, page int)

SetLink provides a mock function with given fields: link, y, page

func (*Fpdf) SetMargins added in v0.30.0

func (_m *Fpdf) SetMargins(left float64, top float64, right float64)

SetMargins provides a mock function with given fields: left, top, right

func (*Fpdf) SetPage added in v0.30.0

func (_m *Fpdf) SetPage(pageNum int)

SetPage provides a mock function with given fields: pageNum

func (*Fpdf) SetPageBox added in v0.30.0

func (_m *Fpdf) SetPageBox(t string, x float64, y float64, wd float64, ht float64)

SetPageBox provides a mock function with given fields: t, x, y, wd, ht

func (*Fpdf) SetPageBoxRec added in v0.30.0

func (_m *Fpdf) SetPageBoxRec(t string, pb gofpdf.PageBox)

SetPageBoxRec provides a mock function with given fields: t, pb

func (*Fpdf) SetProtection added in v0.30.0

func (_m *Fpdf) SetProtection(actionFlag byte, userPassStr string, ownerPassStr string)

SetProtection provides a mock function with given fields: actionFlag, userPassStr, ownerPassStr

func (*Fpdf) SetRightMargin added in v0.30.0

func (_m *Fpdf) SetRightMargin(margin float64)

SetRightMargin provides a mock function with given fields: margin

func (*Fpdf) SetSubject added in v0.30.0

func (_m *Fpdf) SetSubject(subjectStr string, isUTF8 bool)

SetSubject provides a mock function with given fields: subjectStr, isUTF8

func (*Fpdf) SetTextColor added in v0.30.0

func (_m *Fpdf) SetTextColor(r int, g int, b int)

SetTextColor provides a mock function with given fields: r, g, b

func (*Fpdf) SetTextSpotColor added in v0.30.0

func (_m *Fpdf) SetTextSpotColor(nameStr string, tint byte)

SetTextSpotColor provides a mock function with given fields: nameStr, tint

func (*Fpdf) SetTitle added in v0.30.0

func (_m *Fpdf) SetTitle(titleStr string, isUTF8 bool)

SetTitle provides a mock function with given fields: titleStr, isUTF8

func (*Fpdf) SetTopMargin added in v0.30.0

func (_m *Fpdf) SetTopMargin(margin float64)

SetTopMargin provides a mock function with given fields: margin

func (*Fpdf) SetX added in v0.30.0

func (_m *Fpdf) SetX(x float64)

SetX provides a mock function with given fields: x

func (*Fpdf) SetXY added in v0.30.0

func (_m *Fpdf) SetXY(x float64, y float64)

SetXY provides a mock function with given fields: x, y

func (*Fpdf) SetXmpMetadata added in v0.30.0

func (_m *Fpdf) SetXmpMetadata(xmpStream []byte)

SetXmpMetadata provides a mock function with given fields: xmpStream

func (*Fpdf) SetY added in v0.30.0

func (_m *Fpdf) SetY(y float64)

SetY provides a mock function with given fields: y

func (*Fpdf) SplitLines added in v0.30.0

func (_m *Fpdf) SplitLines(txt []byte, w float64) [][]byte

SplitLines provides a mock function with given fields: txt, w

func (*Fpdf) String added in v0.30.0

func (_m *Fpdf) String() string

String provides a mock function with given fields:

func (*Fpdf) Text added in v0.30.0

func (_m *Fpdf) Text(x float64, y float64, txtStr string)

Text provides a mock function with given fields: x, y, txtStr

func (*Fpdf) Transform added in v0.30.0

func (_m *Fpdf) Transform(tm gofpdf.TransformMatrix)

Transform provides a mock function with given fields: tm

func (*Fpdf) TransformBegin added in v0.30.0

func (_m *Fpdf) TransformBegin()

TransformBegin provides a mock function with given fields:

func (*Fpdf) TransformEnd added in v0.30.0

func (_m *Fpdf) TransformEnd()

TransformEnd provides a mock function with given fields:

func (*Fpdf) TransformMirrorHorizontal added in v0.30.0

func (_m *Fpdf) TransformMirrorHorizontal(x float64)

TransformMirrorHorizontal provides a mock function with given fields: x

func (*Fpdf) TransformMirrorLine added in v0.30.0

func (_m *Fpdf) TransformMirrorLine(angle float64, x float64, y float64)

TransformMirrorLine provides a mock function with given fields: angle, x, y

func (*Fpdf) TransformMirrorPoint added in v0.30.0

func (_m *Fpdf) TransformMirrorPoint(x float64, y float64)

TransformMirrorPoint provides a mock function with given fields: x, y

func (*Fpdf) TransformMirrorVertical added in v0.30.0

func (_m *Fpdf) TransformMirrorVertical(y float64)

TransformMirrorVertical provides a mock function with given fields: y

func (*Fpdf) TransformRotate added in v0.30.0

func (_m *Fpdf) TransformRotate(angle float64, x float64, y float64)

TransformRotate provides a mock function with given fields: angle, x, y

func (*Fpdf) TransformScale added in v0.30.0

func (_m *Fpdf) TransformScale(scaleWd float64, scaleHt float64, x float64, y float64)

TransformScale provides a mock function with given fields: scaleWd, scaleHt, x, y

func (*Fpdf) TransformScaleX added in v0.30.0

func (_m *Fpdf) TransformScaleX(scaleWd float64, x float64, y float64)

TransformScaleX provides a mock function with given fields: scaleWd, x, y

func (*Fpdf) TransformScaleXY added in v0.30.0

func (_m *Fpdf) TransformScaleXY(s float64, x float64, y float64)

TransformScaleXY provides a mock function with given fields: s, x, y

func (*Fpdf) TransformScaleY added in v0.30.0

func (_m *Fpdf) TransformScaleY(scaleHt float64, x float64, y float64)

TransformScaleY provides a mock function with given fields: scaleHt, x, y

func (*Fpdf) TransformSkew added in v0.30.0

func (_m *Fpdf) TransformSkew(angleX float64, angleY float64, x float64, y float64)

TransformSkew provides a mock function with given fields: angleX, angleY, x, y

func (*Fpdf) TransformSkewX added in v0.30.0

func (_m *Fpdf) TransformSkewX(angleX float64, x float64, y float64)

TransformSkewX provides a mock function with given fields: angleX, x, y

func (*Fpdf) TransformSkewY added in v0.30.0

func (_m *Fpdf) TransformSkewY(angleY float64, x float64, y float64)

TransformSkewY provides a mock function with given fields: angleY, x, y

func (*Fpdf) TransformTranslate added in v0.30.0

func (_m *Fpdf) TransformTranslate(tx float64, ty float64)

TransformTranslate provides a mock function with given fields: tx, ty

func (*Fpdf) TransformTranslateX added in v0.30.0

func (_m *Fpdf) TransformTranslateX(tx float64)

TransformTranslateX provides a mock function with given fields: tx

func (*Fpdf) TransformTranslateY added in v0.30.0

func (_m *Fpdf) TransformTranslateY(ty float64)

TransformTranslateY provides a mock function with given fields: ty

func (*Fpdf) UnicodeTranslatorFromDescriptor added in v0.30.0

func (_m *Fpdf) UnicodeTranslatorFromDescriptor(cpStr string) func(string) string

UnicodeTranslatorFromDescriptor provides a mock function with given fields: cpStr

func (*Fpdf) UnitToPointConvert added in v0.30.0

func (_m *Fpdf) UnitToPointConvert(u float64) float64

UnitToPointConvert provides a mock function with given fields: u

func (*Fpdf) UseTemplate added in v0.30.0

func (_m *Fpdf) UseTemplate(t gofpdf.Template)

UseTemplate provides a mock function with given fields: t

func (*Fpdf) UseTemplateScaled added in v0.30.0

func (_m *Fpdf) UseTemplateScaled(t gofpdf.Template, corner gofpdf.PointType, size gofpdf.SizeType)

UseTemplateScaled provides a mock function with given fields: t, corner, size

func (*Fpdf) Write added in v0.30.0

func (_m *Fpdf) Write(h float64, txtStr string)

Write provides a mock function with given fields: h, txtStr

func (*Fpdf) WriteAligned added in v0.30.0

func (_m *Fpdf) WriteAligned(width float64, lineHeight float64, textStr string, alignStr string)

WriteAligned provides a mock function with given fields: width, lineHeight, textStr, alignStr

func (*Fpdf) WriteLinkID added in v0.30.0

func (_m *Fpdf) WriteLinkID(h float64, displayStr string, linkID int)

WriteLinkID provides a mock function with given fields: h, displayStr, linkID

func (*Fpdf) WriteLinkString added in v0.30.0

func (_m *Fpdf) WriteLinkString(h float64, displayStr string, targetStr string)

WriteLinkString provides a mock function with given fields: h, displayStr, targetStr

func (*Fpdf) Writef added in v0.30.0

func (_m *Fpdf) Writef(h float64, fmtStr string, args ...interface{})

Writef provides a mock function with given fields: h, fmtStr, args

type Image

type Image struct {
	mock.Mock
}

Image is an autogenerated mock type for the Image type

func (*Image) AddFromBase64

func (_m *Image) AddFromBase64(stringBase64 string, cell internal.Cell, prop props.Rect, extension consts.Extension) error

AddFromBase64 provides a mock function with given fields: stringBase64, cell, prop, extension

func (*Image) AddFromFile

func (_m *Image) AddFromFile(path string, cell internal.Cell, prop props.Rect) error

AddFromFile provides a mock function with given fields: path, cell, prop

type Line added in v0.35.0

type Line struct {
	mock.Mock
}

Line is an autogenerated mock type for the Line type

func (*Line) Draw added in v0.35.0

func (_m *Line) Draw(cell internal.Cell, lineProp props.Line)

Draw provides a mock function with given fields: cell, lineProp

type Maroto

type Maroto struct {
	mock.Mock
}

Maroto is an autogenerated mock type for the Maroto type

func (*Maroto) Barcode

func (_m *Maroto) Barcode(code string, prop ...props.Barcode) error

Barcode provides a mock function with given fields: code, prop

func (*Maroto) Base64Image

func (_m *Maroto) Base64Image(base64 string, extension consts.Extension, prop ...props.Rect) error

Base64Image provides a mock function with given fields: base64, extension, prop

func (*Maroto) Col

func (_m *Maroto) Col(width uint, closure func())

Col provides a mock function with given fields: closure

func (*Maroto) ColSpace

func (_m *Maroto) ColSpace(uint)

ColSpace provides a mock function with given fields:

func (*Maroto) ColSpaces

func (_m *Maroto) ColSpaces(qtd int)

ColSpaces provides a mock function with given fields: qtd

func (*Maroto) FileImage

func (_m *Maroto) FileImage(filePathName string, prop ...props.Rect) error

FileImage provides a mock function with given fields: filePathName, prop

func (*Maroto) GetBorder added in v0.21.2

func (_m *Maroto) GetBorder() bool

GetBorder provides a mock function with given fields:

func (*Maroto) GetCurrentOffset added in v0.21.2

func (_m *Maroto) GetCurrentOffset() float64

GetCurrentOffset provides a mock function with given fields:

func (*Maroto) GetCurrentPage added in v0.21.2

func (_m *Maroto) GetCurrentPage() int

GetCurrentPage provides a mock function with given fields:

func (*Maroto) GetPageMargins added in v0.24.0

func (_m *Maroto) GetPageMargins() (float64, float64, float64, float64)

GetPageMargins provides a mock function with given fields:

func (*Maroto) GetPageSize

func (_m *Maroto) GetPageSize() (float64, float64)

GetPageSize provides a mock function with given fields:

func (*Maroto) Line

func (_m *Maroto) Line(spaceHeight float64, prop ...props.Line)

Line provides a mock function with given fields: spaceHeight

func (*Maroto) Output

func (_m *Maroto) Output() (bytes.Buffer, error)

Output provides a mock function with given fields:

func (*Maroto) OutputFileAndClose

func (_m *Maroto) OutputFileAndClose(filePathName string) error

OutputFileAndClose provides a mock function with given fields: filePathName

func (*Maroto) QrCode

func (_m *Maroto) QrCode(code string, prop ...props.Rect)

QrCode provides a mock function with given fields: code, prop

func (*Maroto) RegisterFooter added in v0.21.2

func (_m *Maroto) RegisterFooter(closure func())

RegisterFooter provides a mock function with given fields: closure

func (*Maroto) RegisterHeader

func (_m *Maroto) RegisterHeader(closure func())

RegisterHeader provides a mock function with given fields: closure

func (*Maroto) Row

func (_m *Maroto) Row(height float64, closure func())

Row provides a mock function with given fields: height, closure

func (*Maroto) SetBackgroundColor added in v0.24.0

func (_m *Maroto) SetBackgroundColor(_a0 color.Color)

SetBackgroundColor provides a mock function with given fields: _a0

func (*Maroto) SetBorder added in v0.21.2

func (_m *Maroto) SetBorder(on bool)

SetBorder provides a mock function with given fields: on

func (*Maroto) SetMaxGridSum added in v0.42.0

func (_m *Maroto) SetMaxGridSum(maxGridSum int)

SetMaxGridSum provides a mock function with given fields: maxGridSum

func (*Maroto) SetPageMargins added in v0.24.0

func (_m *Maroto) SetPageMargins(left float64, top float64, right float64)

SetPageMargins provides a mock function with given fields: left, top, right

func (*Maroto) Signature

func (_m *Maroto) Signature(label string, prop ...props.Font)

Signature provides a mock function with given fields: label, prop

func (*Maroto) TableList

func (_m *Maroto) TableList(header []string, contents [][]string, prop ...props.TableList)

TableList provides a mock function with given fields: header, contents, prop

func (*Maroto) Text

func (_m *Maroto) Text(text string, prop ...props.Text)

Text provides a mock function with given fields: text, prop

type Math

type Math struct {
	mock.Mock
}

Math is an autogenerated mock type for the Math type

func (*Math) GetCenterCorrection

func (_m *Math) GetCenterCorrection(outerSize float64, innerSize float64) float64

GetCenterCorrection provides a mock function with given fields: outerSize, innerSize

func (*Math) GetRectCenterColProperties

func (_m *Math) GetRectCenterColProperties(imageWidth float64, imageHeight float64, colWidth float64, colHeight float64, xColOffset float64, percent float64) (float64, float64, float64, float64)

GetRectCenterColProperties provides a mock function with given fields: imageWidth, imageHeight, qtdCols, colHeight, indexCol, percent

func (*Math) GetRectNonCenterColProperties

func (_m *Math) GetRectNonCenterColProperties(imageWidth float64, imageHeight float64, colWidth float64, colHeight float64, xColOffset float64, prop props.Rect) (float64, float64, float64, float64)

GetRectNonCenterColProperties provides a mock function with given fields: imageWidth, imageHeight, qtdCols, colHeight, indexCol, prop

func (*Math) GetWidthPerCol

func (_m *Math) GetWidthPerCol(percent float64) float64

GetWidthPerCol provides a mock function with given fields: qtdCols

type Signature

type Signature struct {
	mock.Mock
}

Signature is an autogenerated mock type for the Signature type

func (*Signature) AddSpaceFor

func (_m *Signature) AddSpaceFor(label string, cell internal.Cell, textProp props.Text)

AddSpaceFor provides a mock function with given fields: label, cell, textProp

type TableList added in v0.21.2

type TableList struct {
	mock.Mock
}

TableList is an autogenerated mock type for the TableList type

func (*TableList) BindGrid added in v0.21.2

func (_m *TableList) BindGrid(part internal.MarotoGridPart)

BindGrid provides a mock function with given fields: part

func (*TableList) Create added in v0.21.2

func (_m *TableList) Create(header []string, contents [][]string, defaultFontFamily string, prop ...props.TableList)

Create provides a mock function with given fields: header, contents, defaultFontFamily, prop

type Text

type Text struct {
	mock.Mock
}

Text is an autogenerated mock type for the Text type

func (*Text) Add

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

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

func (*Text) GetLinesQuantity added in v0.21.2

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

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

Jump to

Keyboard shortcuts

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