internal/stubs/apiuser.go   A
last analyzed

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A stubs.APIUserCreateAPIKey 0 2 1
A stubs.APIUserGet 0 2 1
1
package stubs
2
3
// APIUserCreateAPIKey is a dummy json response for the {baseURL}/apiuser/{APIUser}/apikey API
4
func APIUserCreateAPIKey() []byte {
5
	return []byte(`
6
		{
7
        	"apiKey": "f1db798c98df4bcf83b538175893bbf0"
8
        }
9
`)
10
}
11
12
// APIUserGet is a dummy json response for the /v1_0/apiuser/{X-Reference-Id} API
13
func APIUserGet() []byte {
14
	return []byte(`
15
	{
16
		"providerCallbackHost": "string",
17
		"targetEnvironment": "sandbox"
18
	}
19
`)
20
}
21