hkid_result.go   A
last analyzed

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
cc 5
eloc 14
dl 0
loc 25
ccs 5
cts 5
cp 1
crap 5
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A hkid.*result.GetPart2 0 2 1
A hkid.*result.GetPart1 0 2 1
A hkid.*result.GetPart3 0 2 1
A hkid.*result.Format 0 2 1
A hkid.newHkidResultWithValid 0 2 1
1
package hkid
2
3
type result struct {
4
	hkid  *hkid
5
	Valid bool
6
}
7
8
func (h *result) GetPart1() string {
9 1
	return h.hkid.GetPart1()
10
}
11
12
func (h *result) GetPart2() string {
13 1
	return h.hkid.GetPart2()
14
}
15
16
func (h *result) GetPart3() string {
17 1
	return h.hkid.GetPart3()
18
}
19
20
func (h *result) Format() string {
21 1
	return h.hkid.Format()
22
}
23
24
func newHkidResultWithValid(hkid *hkid, valid bool) *result {
25 1
	return &result{hkid: hkid, Valid: valid}
26
}
27