/
RawAPI.go
66 lines (54 loc) · 1.48 KB
/
RawAPI.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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import (
pckg "github.com/eltorocorp/drygopher/drygopher/coverage/pckg"
mock "github.com/stretchr/testify/mock"
)
// RawAPI is an autogenerated mock type for the RawAPI type
type RawAPI struct {
mock.Mock
}
// AggregateRawPackageAnalysisData provides a mock function with given fields: pkg, rawPkgCoverageData
func (_m *RawAPI) AggregateRawPackageAnalysisData(pkg string, rawPkgCoverageData []string) (*pckg.Stats, error) {
ret := _m.Called(pkg, rawPkgCoverageData)
var r0 *pckg.Stats
if rf, ok := ret.Get(0).(func(string, []string) *pckg.Stats); ok {
r0 = rf(pkg, rawPkgCoverageData)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*pckg.Stats)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string, []string) error); ok {
r1 = rf(pkg, rawPkgCoverageData)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetRawCoverageAnalysisForPackage provides a mock function with given fields: pkg
func (_m *RawAPI) GetRawCoverageAnalysisForPackage(pkg string) ([]string, bool, error) {
ret := _m.Called(pkg)
var r0 []string
if rf, ok := ret.Get(0).(func(string) []string); ok {
r0 = rf(pkg)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]string)
}
}
var r1 bool
if rf, ok := ret.Get(1).(func(string) bool); ok {
r1 = rf(pkg)
} else {
r1 = ret.Get(1).(bool)
}
var r2 error
if rf, ok := ret.Get(2).(func(string) error); ok {
r2 = rf(pkg)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}