money.*Amount.Value   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 0
dl 0
loc 2
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
package money
2
3
// Amount stores the amounts used for calculations
4
type Amount struct {
5
	val int64
6
}
7
8
// Value returns the amount value
9
func (a *Amount) Value() int64 {
10 1
	return a.val
11
}
12