Test Setup Failed
Push — main ( 65658e...e4024b )
by Acho
02:13
created

internal/stubs/heartbeat.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.HeartbeatIndexResponse 0 2 1
1
package stubs
2
3
// HeartbeatIndexResponse response from the /v1/heartbeats endpoint
4
func HeartbeatIndexResponse() []byte {
5
	return []byte(`
6
{
7
    "data": [
8
        {
9
            "id": "9d484671-cac2-41de-9171-d9d2c1835d7b",
10
            "owner": "+18005550199",
11
            "user_id": "hT5V2CmN5bbG81glMLmosxPV9Np2",
12
            "charging": true,
13
            "timestamp": "2024-01-21T13:07:56.203538Z"
14
        }
15
    ],
16
    "message": "fetched 1 heartbeat",
17
    "status": "success"
18
}
19
`)
20
}
21