mocks

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 9 Imported by: 0

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

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

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

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

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

type Fpdf struct {
	mock.Mock
}

Fpdf is an autogenerated mock type for the Fpdf type

func (*Fpdf) AddFont

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

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

func (*Fpdf) AddFontFromBytes

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

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

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

func (_m *Fpdf) AddPage()

AddPage provides a mock function with given fields:

func (*Fpdf) AddPageFormat

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

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

func (*Fpdf) AddSpotColor

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

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

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

func (*Fpdf) AliasNbPages

func (_m *Fpdf) AliasNbPages(aliasStr string)

AliasNbPages provides a mock function with given fields: aliasStr

func (*Fpdf) Arc

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

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

func (_m *Fpdf) BeginLayer(id int)

BeginLayer provides a mock function with given fields: id

func (*Fpdf) Beziergon

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

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

func (*Fpdf) Bookmark

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

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

func (*Fpdf) Cell

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

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

func (*Fpdf) CellFormat

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

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

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

func (_m *Fpdf) ClearError()

ClearError provides a mock function with given fields:

func (*Fpdf) ClipCircle

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

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

func (_m *Fpdf) ClipEnd()

ClipEnd provides a mock function with given fields:

func (*Fpdf) ClipPolygon

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

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

func (*Fpdf) ClipRect

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

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

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

func (_m *Fpdf) Close()

Close provides a mock function with given fields:

func (*Fpdf) ClosePath

func (_m *Fpdf) ClosePath()

ClosePath provides a mock function with given fields:

func (*Fpdf) CreateTemplate

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

CreateTemplate provides a mock function with given fields: fn

func (*Fpdf) CreateTemplateCustom

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

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

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

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

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

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

func (_m *Fpdf) DrawPath(styleStr string)

DrawPath provides a mock function with given fields: styleStr

func (*Fpdf) Ellipse

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

func (_m *Fpdf) EndLayer()

EndLayer provides a mock function with given fields:

func (*Fpdf) Err

func (_m *Fpdf) Err() bool

Err provides a mock function with given fields:

func (*Fpdf) Error

func (_m *Fpdf) Error() error

Error provides a mock function with given fields:

func (*Fpdf) GetAlpha

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

GetAlpha provides a mock function with given fields:

func (*Fpdf) GetAutoPageBreak

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

GetAutoPageBreak provides a mock function with given fields:

func (*Fpdf) GetCellMargin

func (_m *Fpdf) GetCellMargin() float64

GetCellMargin provides a mock function with given fields:

func (*Fpdf) GetConversionRatio

func (_m *Fpdf) GetConversionRatio() float64

GetConversionRatio provides a mock function with given fields:

func (*Fpdf) GetDrawColor

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

GetDrawColor provides a mock function with given fields:

func (*Fpdf) GetDrawSpotColor

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

GetDrawSpotColor provides a mock function with given fields:

func (*Fpdf) GetFillColor

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

GetFillColor provides a mock function with given fields:

func (*Fpdf) GetFillSpotColor

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

GetFillSpotColor provides a mock function with given fields:

func (*Fpdf) GetFontDesc

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

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

func (*Fpdf) GetFontSize

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

GetFontSize provides a mock function with given fields:

func (*Fpdf) GetImageInfo

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

GetImageInfo provides a mock function with given fields: imageStr

func (*Fpdf) GetLineWidth

func (_m *Fpdf) GetLineWidth() float64

GetLineWidth provides a mock function with given fields:

func (*Fpdf) GetMargins

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

GetMargins provides a mock function with given fields:

func (*Fpdf) GetPageSize

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

GetPageSize provides a mock function with given fields:

func (*Fpdf) GetPageSizeStr

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

GetPageSizeStr provides a mock function with given fields: sizeStr

func (*Fpdf) GetStringWidth

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

GetStringWidth provides a mock function with given fields: s

func (*Fpdf) GetTextColor

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

GetTextColor provides a mock function with given fields:

func (*Fpdf) GetTextSpotColor

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

GetTextSpotColor provides a mock function with given fields:

func (*Fpdf) GetX

func (_m *Fpdf) GetX() float64

GetX provides a mock function with given fields:

func (*Fpdf) GetXY

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

GetXY provides a mock function with given fields:

func (*Fpdf) GetY

func (_m *Fpdf) GetY() float64

GetY provides a mock function with given fields:

func (*Fpdf) HTMLBasicNew

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

HTMLBasicNew provides a mock function with given fields:

func (*Fpdf) Image

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

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

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

ImageTypeFromMime provides a mock function with given fields: mimeStr

func (*Fpdf) Line

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

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

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

func (*Fpdf) LinearGradient

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

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

func (_m *Fpdf) Ln(h float64)

Ln provides a mock function with given fields: h

func (*Fpdf) MoveTo

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

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

func (*Fpdf) MultiCell

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

func (_m *Fpdf) Ok() bool

Ok provides a mock function with given fields:

func (*Fpdf) OpenLayerPane

func (_m *Fpdf) OpenLayerPane()

OpenLayerPane provides a mock function with given fields:

func (*Fpdf) Output

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

Output provides a mock function with given fields: w

func (*Fpdf) OutputAndClose

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

OutputAndClose provides a mock function with given fields: w

func (*Fpdf) OutputFileAndClose

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

OutputFileAndClose provides a mock function with given fields: fileStr

func (*Fpdf) PageCount

func (_m *Fpdf) PageCount() int

PageCount provides a mock function with given fields:

func (*Fpdf) PageNo

func (_m *Fpdf) PageNo() int

PageNo provides a mock function with given fields:

func (*Fpdf) PageSize

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

PageSize provides a mock function with given fields: pageNum

func (*Fpdf) PointConvert

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

PointConvert provides a mock function with given fields: pt

func (*Fpdf) PointToUnitConvert

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

PointToUnitConvert provides a mock function with given fields: pt

func (*Fpdf) Polygon

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

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

func (*Fpdf) RadialGradient

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

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

RawWriteBuf provides a mock function with given fields: r

func (*Fpdf) RawWriteStr

func (_m *Fpdf) RawWriteStr(str string)

RawWriteStr provides a mock function with given fields: str

func (*Fpdf) Rect

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

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

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

func (*Fpdf) RegisterImage

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

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

func (*Fpdf) RegisterImageOptions

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

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

func (*Fpdf) RegisterImageOptionsReader

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

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

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

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

func (*Fpdf) SetAcceptPageBreakFunc

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

SetAcceptPageBreakFunc provides a mock function with given fields: fnc

func (*Fpdf) SetAlpha

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

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

func (*Fpdf) SetAuthor

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

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

func (*Fpdf) SetAutoPageBreak

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

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

func (*Fpdf) SetCatalogSort

func (_m *Fpdf) SetCatalogSort(flag bool)

SetCatalogSort provides a mock function with given fields: flag

func (*Fpdf) SetCellMargin

func (_m *Fpdf) SetCellMargin(margin float64)

SetCellMargin provides a mock function with given fields: margin

func (*Fpdf) SetCompression

func (_m *Fpdf) SetCompression(compress bool)

SetCompression provides a mock function with given fields: compress

func (*Fpdf) SetCreationDate

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

SetCreationDate provides a mock function with given fields: tm

func (*Fpdf) SetCreator

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

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

func (*Fpdf) SetDashPattern

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

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

func (*Fpdf) SetDisplayMode

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

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

func (*Fpdf) SetDrawColor

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

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

func (*Fpdf) SetDrawSpotColor

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

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

func (*Fpdf) SetError

func (_m *Fpdf) SetError(err error)

SetError provides a mock function with given fields: err

func (*Fpdf) SetErrorf

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

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

func (*Fpdf) SetFillColor

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

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

func (*Fpdf) SetFillSpotColor

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

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

func (*Fpdf) SetFont

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

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

func (*Fpdf) SetFontLoader

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

SetFontLoader provides a mock function with given fields: loader

func (*Fpdf) SetFontLocation

func (_m *Fpdf) SetFontLocation(fontDirStr string)

SetFontLocation provides a mock function with given fields: fontDirStr

func (*Fpdf) SetFontSize

func (_m *Fpdf) SetFontSize(size float64)

SetFontSize provides a mock function with given fields: size

func (*Fpdf) SetFontStyle

func (_m *Fpdf) SetFontStyle(styleStr string)

SetFontStyle provides a mock function with given fields: styleStr

func (*Fpdf) SetFontUnitSize

func (_m *Fpdf) SetFontUnitSize(size float64)

SetFontUnitSize provides a mock function with given fields: size

func (*Fpdf) SetFooterFunc

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

SetFooterFunc provides a mock function with given fields: fnc

func (*Fpdf) SetFooterFuncLpi

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

SetFooterFuncLpi provides a mock function with given fields: fnc

func (*Fpdf) SetHeaderFunc

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

SetHeaderFunc provides a mock function with given fields: fnc

func (*Fpdf) SetHeaderFuncMode

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

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

func (*Fpdf) SetHomeXY

func (_m *Fpdf) SetHomeXY()

SetHomeXY provides a mock function with given fields:

func (*Fpdf) SetJavascript

func (_m *Fpdf) SetJavascript(script string)

SetJavascript provides a mock function with given fields: script

func (*Fpdf) SetKeywords

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

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

func (*Fpdf) SetLeftMargin

func (_m *Fpdf) SetLeftMargin(margin float64)

SetLeftMargin provides a mock function with given fields: margin

func (*Fpdf) SetLineCapStyle

func (_m *Fpdf) SetLineCapStyle(styleStr string)

SetLineCapStyle provides a mock function with given fields: styleStr

func (*Fpdf) SetLineJoinStyle

func (_m *Fpdf) SetLineJoinStyle(styleStr string)

SetLineJoinStyle provides a mock function with given fields: styleStr

func (*Fpdf) SetLineWidth

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

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

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

func (*Fpdf) SetPage

func (_m *Fpdf) SetPage(pageNum int)

SetPage provides a mock function with given fields: pageNum

func (*Fpdf) SetPageBox

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

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

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

func (*Fpdf) SetProtection

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

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

func (*Fpdf) SetRightMargin

func (_m *Fpdf) SetRightMargin(margin float64)

SetRightMargin provides a mock function with given fields: margin

func (*Fpdf) SetSubject

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

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

func (*Fpdf) SetTextColor

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

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

func (*Fpdf) SetTextSpotColor

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

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

func (*Fpdf) SetTitle

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

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

func (*Fpdf) SetTopMargin

func (_m *Fpdf) SetTopMargin(margin float64)

SetTopMargin provides a mock function with given fields: margin

func (*Fpdf) SetX

func (_m *Fpdf) SetX(x float64)

SetX provides a mock function with given fields: x

func (*Fpdf) SetXY

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

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

func (*Fpdf) SetXmpMetadata

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

SetXmpMetadata provides a mock function with given fields: xmpStream

func (*Fpdf) SetY

func (_m *Fpdf) SetY(y float64)

SetY provides a mock function with given fields: y

func (*Fpdf) SplitLines

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

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

func (*Fpdf) String

func (_m *Fpdf) String() string

String provides a mock function with given fields:

func (*Fpdf) Text

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

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

func (*Fpdf) Transform

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

Transform provides a mock function with given fields: tm

func (*Fpdf) TransformBegin

func (_m *Fpdf) TransformBegin()

TransformBegin provides a mock function with given fields:

func (*Fpdf) TransformEnd

func (_m *Fpdf) TransformEnd()

TransformEnd provides a mock function with given fields:

func (*Fpdf) TransformMirrorHorizontal

func (_m *Fpdf) TransformMirrorHorizontal(x float64)

TransformMirrorHorizontal provides a mock function with given fields: x

func (*Fpdf) TransformMirrorLine

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

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

func (*Fpdf) TransformMirrorPoint

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

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

func (*Fpdf) TransformMirrorVertical

func (_m *Fpdf) TransformMirrorVertical(y float64)

TransformMirrorVertical provides a mock function with given fields: y

func (*Fpdf) TransformRotate

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

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

func (*Fpdf) TransformScale

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

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

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

func (*Fpdf) TransformScaleXY

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

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

func (*Fpdf) TransformScaleY

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

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

func (*Fpdf) TransformSkew

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

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

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

func (*Fpdf) TransformSkewY

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

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

func (*Fpdf) TransformTranslate

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

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

func (*Fpdf) TransformTranslateX

func (_m *Fpdf) TransformTranslateX(tx float64)

TransformTranslateX provides a mock function with given fields: tx

func (*Fpdf) TransformTranslateY

func (_m *Fpdf) TransformTranslateY(ty float64)

TransformTranslateY provides a mock function with given fields: ty

func (*Fpdf) UnicodeTranslatorFromDescriptor

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

UnicodeTranslatorFromDescriptor provides a mock function with given fields: cpStr

func (*Fpdf) UnitToPointConvert

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

UnitToPointConvert provides a mock function with given fields: u

func (*Fpdf) UseTemplate

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

UseTemplate provides a mock function with given fields: t

func (*Fpdf) UseTemplateScaled

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

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

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

func (*Fpdf) WriteAligned

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

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

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

func (*Fpdf) WriteLinkString

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

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

func (*Fpdf) Writef

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

func (_m *Maroto) GetBorder() bool

GetBorder provides a mock function with given fields:

func (*Maroto) GetCurrentOffset

func (_m *Maroto) GetCurrentOffset() float64

GetCurrentOffset provides a mock function with given fields:

func (*Maroto) GetCurrentPage

func (_m *Maroto) GetCurrentPage() int

GetCurrentPage provides a mock function with given fields:

func (*Maroto) GetPageMargins

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)

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

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

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

SetBackgroundColor provides a mock function with given fields: _a0

func (*Maroto) SetBorder

func (_m *Maroto) SetBorder(on bool)

SetBorder provides a mock function with given fields: on

func (*Maroto) SetPageMargins

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

type TableList struct {
	mock.Mock
}

TableList is an autogenerated mock type for the TableList type

func (*TableList) BindGrid

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

BindGrid provides a mock function with given fields: part

func (*TableList) Create

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

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