Passed
Push — main ( add42e...815f74 )
by Rushan
02:28 queued 12s
created

generic/mocks_test.go   A

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 4
eloc 16
dl 0
loc 30
c 0
b 0
f 0
rs 10
1
package generic
2
3
var (
4
	nilInt   *int64
5
	nilUint  *uint64
6
	nilFloat *float64
7
)
8
9
func uintPointer(u uint) *uint {
10
	return &u
11
}
12
13
func intPointer(i int) *int {
14
	return &i
15
}
16
17
func floatPointer(f float64) *float64 {
18
	return &f
19
}
20
21
func stringPointer(s string) *string {
22
	return &s
23
}
24
25
type mapKey struct {
26
	Key string
27
}
28
29
type testInterface interface {
30
	Do() error
31
}
32