Passed
Push — main ( 9ca7b6...75c795 )
by Acho
05:09
created

internal/stubs/account.go   A

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A stubs.AccountBalanceWithError 0 2 1
1
package stubs
2
3
// AccountBalanceWithError is a dummy json response for the `/api/account/agent/balance/v2/` endpoint with an error
4
func AccountBalanceWithError() []byte {
5
	return []byte(`
6
		{
7
			"code": 500,
8
			"message": "412: bad password",
9
			"result": null
10
		}
11
`)
12
}
13