forked from johnfercher/maroto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
math.go
111 lines (90 loc) · 3.64 KB
/
math.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import (
props "github.com/johnfercher/maroto/pkg/props"
mock "github.com/stretchr/testify/mock"
)
// Math is an autogenerated mock type for the Math type
type Math struct {
mock.Mock
}
// GetCenterCorrection provides a mock function with given fields: outerSize, innerSize
func (_m *Math) GetCenterCorrection(outerSize float64, innerSize float64) float64 {
ret := _m.Called(outerSize, innerSize)
var r0 float64
if rf, ok := ret.Get(0).(func(float64, float64) float64); ok {
r0 = rf(outerSize, innerSize)
} else {
r0 = ret.Get(0).(float64)
}
return r0
}
// GetRectCenterColProperties provides a mock function with given fields: imageWidth, imageHeight, qtdCols, colHeight, indexCol, percent
func (_m *Math) GetRectCenterColProperties(imageWidth float64, imageHeight float64, qtdCols float64, colHeight float64, indexCol float64, percent float64) (float64, float64, float64, float64) {
ret := _m.Called(int(imageWidth), int(imageHeight), int(qtdCols), int(colHeight), int(indexCol), int(percent))
var r0 float64
if rf, ok := ret.Get(0).(func(float64, float64, float64, float64, float64, float64) float64); ok {
r0 = rf(imageWidth, imageHeight, qtdCols, colHeight, indexCol, percent)
} else {
r0 = ret.Get(0).(float64)
}
var r1 float64
if rf, ok := ret.Get(1).(func(float64, float64, float64, float64, float64, float64) float64); ok {
r1 = rf(imageWidth, imageHeight, qtdCols, colHeight, indexCol, percent)
} else {
r1 = ret.Get(1).(float64)
}
var r2 float64
if rf, ok := ret.Get(2).(func(float64, float64, float64, float64, float64, float64) float64); ok {
r2 = rf(imageWidth, imageHeight, qtdCols, colHeight, indexCol, percent)
} else {
r2 = ret.Get(2).(float64)
}
var r3 float64
if rf, ok := ret.Get(3).(func(float64, float64, float64, float64, float64, float64) float64); ok {
r3 = rf(imageWidth, imageHeight, qtdCols, colHeight, indexCol, percent)
} else {
r3 = ret.Get(3).(float64)
}
return r0, r1, r2, r3
}
// GetRectNonCenterColProperties provides a mock function with given fields: imageWidth, imageHeight, qtdCols, colHeight, indexCol, prop
func (_m *Math) GetRectNonCenterColProperties(imageWidth float64, imageHeight float64, qtdCols float64, colHeight float64, indexCol float64, prop props.Rect) (float64, float64, float64, float64) {
ret := _m.Called(int(imageWidth), int(imageHeight), int(qtdCols), int(colHeight), int(indexCol), prop)
var r0 float64
if rf, ok := ret.Get(0).(func(float64, float64, float64, float64, float64, props.Rect) float64); ok {
r0 = rf(imageWidth, imageHeight, qtdCols, colHeight, indexCol, prop)
} else {
r0 = ret.Get(0).(float64)
}
var r1 float64
if rf, ok := ret.Get(1).(func(float64, float64, float64, float64, float64, props.Rect) float64); ok {
r1 = rf(imageWidth, imageHeight, qtdCols, colHeight, indexCol, prop)
} else {
r1 = ret.Get(1).(float64)
}
var r2 float64
if rf, ok := ret.Get(2).(func(float64, float64, float64, float64, float64, props.Rect) float64); ok {
r2 = rf(imageWidth, imageHeight, qtdCols, colHeight, indexCol, prop)
} else {
r2 = ret.Get(2).(float64)
}
var r3 float64
if rf, ok := ret.Get(3).(func(float64, float64, float64, float64, float64, props.Rect) float64); ok {
r3 = rf(imageWidth, imageHeight, qtdCols, colHeight, indexCol, prop)
} else {
r3 = ret.Get(3).(float64)
}
return r0, r1, r2, r3
}
// GetWidthPerCol provides a mock function with given fields: qtdCols
func (_m *Math) GetWidthPerCol(qtdCols float64) float64 {
ret := _m.Called(qtdCols)
var r0 float64
if rf, ok := ret.Get(0).(func(float64) float64); ok {
r0 = rf(qtdCols)
} else {
r0 = ret.Get(0).(float64)
}
return r0
}