Test Failed
Push — master ( 4364b8...68b312 )
by iLex
01:35
created

hkid.*result.GetPart1   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
nop 0
1
package hkid
2
3
type result struct {
4
	hkid  *hkid
5
	Valid bool
6
}
7
8
func (h *result) GetPart1() string {
9
	return h.hkid.GetPart1()
10
}
11
12
func (h *result) GetPart2() string {
13
	return h.hkid.GetPart2()
14
}
15
16
func (h *result) GetPart3() string {
17
	return h.hkid.GetPart3()
18
}
19
20
func (h *result) Format() string {
21
	return h.hkid.Format()
22
}
23
24
func newHkidResultWithValid(hkid *hkid, valid bool) *result {
25
	return &result{hkid: hkid, Valid: valid}
26
}
27